Encaminhamento de tráfego para uma determinada porta através de uma interface diferente

1

Meu ISP limita determinados tipos de tráfego. Para contornar esse problema, pensei em obter uma conexão VPN. É possível com o IPTABLES encaminhar todo o tráfego de saída na porta 119 (por exemplo) para minha interface vpn pptp0?

Obrigado

    
por Crankyadmin 08.04.2010 / 10:44

1 resposta

2

Página de manual link

-o, --out-interface [!] name
      Name of an interface via which a packet is going to be sent (for
      packets  entering  the  FORWARD, OUTPUT and POSTROUTING chains).
      When the "!" argument is used before  the  interface  name,  the
      sense  is  inverted.   If the interface name ends in a "+", then
      any interface which begins with this name will match.   If  this
      option is omitted, any interface name will match.

P.S .: as extensões de correspondência para as portas são:

mport
   This module matches a set of source or destination  ports.   Up  to  15
   ports can be specified.  It can only be used in conjunction with -p tcp
   or -p udp.

   --source-ports port[,port[,port...]]
      Match if the source port is one of the given  ports.   The  flag
      --sports is a convenient alias for this option.

   --destination-ports port[,port[,port...]]
      Match  if  the  destination port is one of the given ports.  The
      flag --dports is a convenient alias for this option.

   --ports port[,port[,port...]]
      Match if the both the source and destination ports are equal  to
      each other and to one of the given ports.
    
por 08.04.2010 / 10:47