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.
so that the port will forward from 192.168.0.1 to 192.168.0.2 (From my Linux server to my Workstation), so I can be connectable on irc, torrents and other p2p programs. I was given the command at one point by someone but not on a forum on irc but i had to format my disk and this is the only "simular" command that i could find to tell you what i need (even n00bs have to exist don't we? )
Just found this link too, ignore the bit about the bastille firewall but the bit about iptables might help you. It's for a slightly older version of the kernel though so somethings may have changed since then.
-j REDIRECT changes ports within the same machine (to redirect port 80 to 8080, for example). You need to use -j DNAT (destination network address translation) instead.
You want connections from the internet (through the server) to reach 192.168.0.2, right? Make sure the port is open on the firewall as well as being NAT'd. You'd need
well i enter this and just restarted the aplications runing on my workstation (192.168.0.2) it was a torrent client and on the site it still says i'm unconnectable and my client says the same...
well i forgot that i asked this here but thanks i have fixed the problem i found my old iptables save file and i just restored it and it works fine now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.