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 am starting a new post as I still have not been able to accomplish my goal, and I really need to get this figured out. Any and all help would be greatly appreciated.
My problem. I need to set up a Linux machine containing one nic to accept connections on a port and forward them on to the same port on another computer. For example, when the Linux machine (10.1.1.2) receives a packet on port 25 I need for the machine running SMTP at 10.1.1.1 to answer. I think this is called port forwarding, but so far I have not been able to make it work.
I have deleted my /etc/sysconfig/iptables file and am starting with a clean slate after a reboot. How can I simply set up my Linux machine (10.1.1.2) to forward all packets that it receives on port 25 of eth0 (it's only nic) on to 10.1.1.1. No other security needed, just yet.
Once I get that working, I can then add the security portion piece by piece.
dunno today has not even been close to being my day...
If you know anything about masq'ing.. it has to be done, because your computer isn't going to accept a tcp connection from the other machine..
ex:
Your on Machine A, and attempting to HTTP to Machine B,
But Machine B forwards to Machine C...
Well.. without masqing, Machine C is going to attempt to contact Machine A, about its request.. sorry for not noticing sooner... having 1 fucking sucking ass day at work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.