packet coming through one interface route out via another interface and SNAT also
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have box1 with ip 192.168.129.10 ang GW 192.168.129.1
This box also has an alias of 172.16.0.1
i have the ip of another box, box2 to 172.16.0.10 and the GW to 172.16.0.1, but box2 can not reach the internet. It can ping both ips of box1 but no internet.
the 172.16.0.0 network is not currently catered for in my company.
I am thinking that if i can create some iptable NAT rules on box1 that will accept any packets coming in on 172.16.0.1 and then send it out through 192.168.129.10, at the same time changing the source ip to 192.168.129.10 since 172.16.0 network is not catered for.
I dont know if my idea is possible, if it is how do i implement this on iptables.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.