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

Re: [OT] Source Based Routing



Martin Marcher wrote:
Hello,

Say I want 10.200.10.50 to look like it came from 192.0.2.11 how do I do that?

I have not read all you have written, but will not:

iptables -I PREROUTING -t nat -s 10.200.10.50 ! -d 192.0.2.8/29 -j SNAT --to-source 192.0.2.11

do the trick?

By the way, if the provider uses 192.0.2.9 as the gateway, and you have 192.0.2.10-192.0.2.14, how do you get the traffic for the ips, other than 192.168.2.10, to your gateway? Are you using multiple ip-addresses on the same interface, or do you use proxy arp?



thanks
martin

/Erik



Reply to: