>port forwading is as simple as:
># echo 1 > /proc/sys/net/ipv4/ip_forward
 
Yeah but it only enables the IP forwarding. You still need to create a rules for you IP portwarding using iptables or ipmasqadm.
Heres an example of IP portforwarding:
 
# IPTABLES
iptables -t nat -A PREROUTING -p tcp -i eth0 -d xxx.xxx.xxx.xxx --dport 8888 -j DNAT --to 192.168.0.2:80
iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.2 --dport 80 -j ACCEPT
#IPMASQADM/IPCHAINS
/usr/sbin/ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.xxx 8888 -R 192.168.0.2 80
 
hth
--- Glynn ---
----- Original Message -----
Sent: Friday, October 25, 2002 3:22 PM
Subject: Re: [plug] port forwarding HOWTO

port forwading is as simple as:
 
# echo 1 > /proc/sys/net/ipv4/ip_forward
 
 
 
-------Original Message-------
 
Date: Friday, October 25, 2002 3:16:36 PM
Subject: [plug] port forwarding HOWTO
 
Anyone here who can give me some reference URLs where I can learn about
port forwarding?
--
Oliver





_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]

.
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here

Reply via email to