What is the best way to forward TCP and UDP ports from one computer to another? I have only one ip adress and I want to use programs like WinMX, that require an incomming port, on different computers behind my firewall. I'm using SuSE Linux 7.3 with SuSEfirewall2. Thanks in advance.
Z_God wrote:
What is the best way to forward TCP and UDP ports from one computer to another? I have only one ip adress and I want to use programs like WinMX, that require an incomming port, on different computers behind my firewall. I'm using SuSE Linux 7.3 with SuSEfirewall2. Thanks in advance.
should be able with that setup. i don't know if susefirewall has own config options for that but if i remember right such option exist. iptables -t nat -I PREROUTING -p tcp --dport winmxport -i inetdev -j DNAT --to-dest yourwinmxpc is the rule for manual adding (which will not work i think cause you first need to allow data from inet -> yourpc at the mx port.) HTH Sven
Hi Anonymous,
What is the best way to forward TCP and UDP ports from one computer to another?
Assuming you use NAT and 2.4 kernel: iptables -A PREROUTING -t nat -p [PROTO] --dport [PORT] -i [I_IF] -j DNAT --to [DEST] [PROTO]: tcp / udp [PORT]: Port on public IP, the one you wish to forward [I_IF]: incoming (public) interface ( e.g. ppp0 ) [DEST]: destination ip:destination port // Martin Koenig PS: Why not use your real Name? PPS: Now what part of your question exactly was security-related?
Martin Koenig wrote:
Hi Anonymous,
What is the best way to forward TCP and UDP ports from one computer to another?
Assuming you use NAT and 2.4 kernel:
iptables -A PREROUTING -t nat -p [PROTO] --dport [PORT] -i [I_IF] -j DNAT --to [DEST]
[PROTO]: tcp / udp [PORT]: Port on public IP, the one you wish to forward [I_IF]: incoming (public) interface ( e.g. ppp0 ) [DEST]: destination ip:destination port
// Martin Koenig
PS: Why not use your real Name? PPS: Now what part of your question exactly was security-related?
Thanks all, I found the section for port-forwarding in the SuSEfirewall2 config file. I'm sorry if the question was off-topic on this list, I'm a newbie with Linux and exspecially with configuring firewalls. I thought that because it had to do with firewalling, people on the security list might know alot about these things. I do not use my real name with mailing list, because I have my email software set-up with my nick and most people do not seem to care about it. Martin Koenig, I receved your message three times, there might be something wrong with your client
participants (3)
-
Martin Koenig
-
Sven 'Darkman' Michels
-
Z_God