Can DSL be used as a proxy ??Forum: Networking Topic: Can DSL be used as a proxy ?? started by: Apockalypsse Posted by Apockalypsse on April 04 2005,19:25
HiI'm new to Linux and I'm willing to learn ) I want to use my old PC, an Penrium 233MHz MMX with 32Mb SDRam and 1,5 Gb HDD as a proxy. Can DSL do that ?! All I want him to do is to share the P2's internet connection (from a external modem cable) to the rest of the network: 3-4 PCs running WinXP. Can anyone help me ?! Pleaseeeeee Posted by Waterns on April 05 2005,14:14
Whats way are there going to be connected by? Wireless, or wired. Either way all you have to do is set the old PC to use DHCP and then have the other computers use the the old pcs ip address as there gateway address.
Posted by Fortman on May 01 2005,02:47
sorry because of my englishyou 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 |