tottie
MIS
- Jan 5, 2003
- 60
hi, wanted to convert my proxy server from windows2000 to linux on redhat9. here's the configuration of my linux box: my box is connected to my isp via dsl and its working fine. my workstations are:
-running on win98
-static ip addreses(protocol:tcp/ip only)
-gateway is pointed to my linux box's private ip
-enabled DNS(isp's dns)
my workstations cant connect to the internet. i can ping my proxy but not the internet. did i miss something? please help. tired of restarting my 2000server
Internet
|
| NIC1 IP: <public ip>
| Netmask: <255.255.255.xxx>
| Gateway: <my isp gateway>
| DNS1: <isp dns1>
| DNS2: <isp dns2>
,-----------------,
| Linux PC Router |
'-----------------'
| NIC2 IP: <192.168.0.1>
| Netmask: <255.255.255.0>
|
|
|Hub/Switch|
|
client 1
IP: 192.168.0.2
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS1: 202.57.96.4
DNS2: 203.172.11.26
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0/0 -j MASQUERADE
/etc/rc.d/init.d/network save
/etc/rc.d/init.d/network restart
-running on win98
-static ip addreses(protocol:tcp/ip only)
-gateway is pointed to my linux box's private ip
-enabled DNS(isp's dns)
my workstations cant connect to the internet. i can ping my proxy but not the internet. did i miss something? please help. tired of restarting my 2000server
Internet
|
| NIC1 IP: <public ip>
| Netmask: <255.255.255.xxx>
| Gateway: <my isp gateway>
| DNS1: <isp dns1>
| DNS2: <isp dns2>
,-----------------,
| Linux PC Router |
'-----------------'
| NIC2 IP: <192.168.0.1>
| Netmask: <255.255.255.0>
|
|
|Hub/Switch|
|
client 1
IP: 192.168.0.2
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS1: 202.57.96.4
DNS2: 203.172.11.26
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0/0 -j MASQUERADE
/etc/rc.d/init.d/network save
/etc/rc.d/init.d/network restart