with iptables:

IPTABLES -A PREROUTING -t nat -p tcp -i nas1 --dport 81 -j DNAT --to
192.168.1.201:80
IPTABLES -A INPUT -p tcp --dport 80 -j ACCEPT
IPTABLES -A FORWARD -p tcp --dport 80 -j ACCEPT
IPTABLES -A PREROUTING -t nat -p udp -i nas1 --dport 81 -j DNAT --to
192.168.1.201:80
IPTABLES -A INPUT -p udp --dport 80 -j ACCEPT
IPTABLES -A FORWARD -p udp --dport 80 -j ACCEPT

Explanations: 
-i nas1 = INTERFACE IN (In my case this is an ADSL Card)

modify ports / ip / iface to suit your needs.

On Thu, 2003-10-30 at 22:21, Albert Whale wrote:
> Does anyone have a simple approach to forward the 443 port to an 
> internal machine?
-- 
Seppo Jarvinen,[EMAIL PROTECTED]  Never trust an operating system
Kenttäkatu 9 A 2,76100 PIEKSÄMÄKI you don't have sources for.
GSM +358 40 568 1756              You never know what you're facing
Power the World, With Linux!      unless you dare to LOOK AT IT.
              Technology lies on the leading edge


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

Reply via email to