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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have recently purchased a filtering device. This device needs to service 4 subnets. It is placed behind a firewall/gateway/router/VPN server on one of the subnets (192.168.0.*) and is serving that one just fine. One of the other subnets(192.168.3.*) is in the same building and connected to the same router. The other two subnets (192.168.1.* & 192.168.2.*) are in another building also hooked up to a firewall/gateway/router/VPN server.
My gateway servers are masquerading and I need to set up my ipchains so that all port 80 traffic goes through the filter (192.168.0.5). The filter will automatically then send requests out to the internet and back appropriately.
I hope I have explained that well enough so that someone can help me!?
Thanks for the reply. The machines are at work and I won't be able to test your advise for a few days but I didn't want you to think I didn't appreciate your respose.
The solution you gave sets up masq, which is already active.
Next it routes everything though IP 192.168.0.5. I only need packets that are going out port 80 to go through the filter. The ohter problem I see is that the filtering device uses the server to send information out to the internet. If that servers default route is to send information to 192.168.0.5 I start a horrible loop of death.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.