Problem: Port Forwarding

Post Reply
Message
Author
Thomas

Problem: Port Forwarding

#1 Post by Thomas »

Hallo zusammen,
brauch mal dringend Hilfe...

Hab hier nen Linux Rechner mit der Std. Linux Firewall über IPCHAINS.
Der Linux Rechner leitet alles aus meinem LAN ins Internet, etc.

Jetzt möchte ich gerne auf einem PC einen Shoutcast Server aufsetzen um Audio ins Internet zu senden.

Das ganze läuft über Port 8000/8001 nach draussen.

Jetzt hab ich aber keine Ahnung, wie ich wo ueber IPCHAINS sagen muss, dass alle Anfragen, die mit Port xxx an meine Externe Internet IP gestellt werden von Linux auf diesen Rechner geschickt werden sollen, und auch wieder zurück ...

Kann mir da jemand nen Tipp geben ?

Danke im voraus !

Gruss,
Thomas

Michael

Re: Problem: Port Forwarding

#2 Post by Michael »

ipchains -I input -j REDIRECT...

man ipchains

snip
----
REDIRECT is only legal for the input and user-defined
chains and can only be used when the Linux kernel is com­
piled with CONFIG_IP_TRANSPARENT_PROXY defined. With
this, packets will be redirected to a local socket, even
if they were sent to a remote host. If the specified
redirection port is 0, which is the default value, the
destination port of a packet will be used as the redirec­
tion port. When this target is used, an optional extra
argument (the port number) can be supplied.
---
snap


<a href="http://www.tldp.org/HOWTO/IPCHAINS-HOWTO-6.html#ss6.3" target="_blank"><!--auto-->http://www.tldp.org/HOWTO/IPCHAINS-HOWT ... <!--auto-->

Cheers

Michael

Michael

Re: Problem: Port Forwarding

#3 Post by Michael »

Oops, das war nur lokales forwading.

Hier is das was Du möchtest:

<a href="http://lists.debian.org/debian-user-ger ... 00387.html" target="_blank"><!--auto-->http://lists.debian.org/debian-user-ger ... <!--auto-->

Cheers

Michael

Post Reply