This rule would allow traffic going to the www port (80) to be forwarded on.
   iptables -A FORWARD -p tcp --dport 80 -j ACCEPT

   Change destination addresses of web traffic to 5.6.7.8, port 8080.
   iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j DNAT --to 5.6.7.8:8080

This lot just came from a google search on 'iptables +forward'

HTH

David.

--------- Original message --------
From: "Guilherme Cirne" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Subject: [newbie] Server behind a firewall
Date: 08-21-02 10:25

Hi,

I have a simple home network made up of 3 computers. One is running ML 8.1
and is connected to the internet via DSL. It is sharing the net connection
via NAT/IP masquerading and has a firewall setup using iptables. The other
2 computers are running Windows.

Suppose I wanted to run a server on one of the Win computers (behind the
firewall), like Kazaa for example, how would I go about it so that the
server would accept connections from the outside network. Would it be
enough to just open the correct port on the gateway machine. Or are there
additional steps to be taken?

Any help is very much welcome.

TIA,

Guilherme Cirne
[EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Reply via email to