You are not logged in.

Search results

Search results 1-1 of 1.

Tuesday, May 13th 2003, 11:54pm

Author: fips

how to share internet connection?

for "internet sharing" e.g. NAT you have to use the program iptables search for that keyword an incomplete example IPT=/sbin/iptables # enable ipv4 packet forwarding echo "1" >/proc/sys/net/ipv4/ip_forward # masq'd hosts: $IPT -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to-source <your ISP ip adress> #portforwarding to an internal machine is done like this $IPT -t nat -A PREROUTING -p tcp -d <ISP ip adress> -i eth0 --dport 8888 -j DNAT --to-destination <internal machine>:8888 to us...