Re: virtual interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> What i thought was to have a virtual interface and
> bind the other internet routable address to it, ex
> eth0:0. What are my options?
> Also how could i do the POSTROUTING SNAT if I cannot
> use virtual in terfaces?
> 

You can use the Source IP or Destination IP, can't you ?

....-i eth0 -A POSTROUTING -s 192.168.128.6 -j SNAT --to 64.24.12.46 
....-i eth0 -A POSTROUTING -s 192.168.128.5 -j SNAT --to 64.24.12.45 

....-i eth1 -A PREROUTING -d 64.24.12.46 -j DNAT --to 192.168.128.6
....-i eth1 -A PREROUTING -d 64.24.12.45 -j DNAT --to 192.168.128.5












[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux