Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proxy on Linux

Status
Not open for further replies.

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
 
What does `cat /proc/sys/net/ipv4/ip_forward` say ?
(It should be 1)
Shay.
 
&quot;cat /proc/sys/net/ipv4/ip_forward&quot; would give &quot;0&quot;
 
unixfreak,
"cat /proc/sys/net/ipv4/ip_forward" now gives 1. whats next? it still wont share my internet. what changes should i do on my win98 workstation?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top