Fortman
Group: Members
Posts: 2
Joined: May 2005 |
|
Posted: May 01 2005,02:47 |
|
sorry because of my english you can use dsl as a gateway first you have two eth in your old pc (compatibles, rtl8139 works for me) eth0 config your internet eth1 config intranet normal (ip 192.168.0.1 netmask 255.255.255.0)
config ip forwarding: echo 1 > /proc/sys/net/ipv4/ip_forward
install iptables.dsl
create script
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
or
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables is powerful tool you can use as firewall
Best regards, Fortman mailto:jdcc@fortman.org
|