Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
November 21, 2024, 10:14:52 PM
News
: LinuxSolved.com Linux Help Community Forum..
Home
Search
Login
Register
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
»
Network Troublshooting
»
General Networking Support in Linux
»
Net sharing prob
« previous
next »
Print
Pages: [
1
]
Author
Topic: Net sharing prob (Read 7652 times)
abc1234
New Member
Posts: 3
Net sharing prob
«
on:
December 27, 2003, 01:34:11 AM »
Hello !!!
I have given a code to share the net thru masquerade, but the client (windows) are not able to browse. Can anybody tell me whatz the prob ??
eth0 - is the ISP Provider
eth1 - is the LAN 192.168.1.1
In the client side the IP address is as follows
IP : 192.168.1.2
subnet : 255.255.255.0
gateway : 192.168.1.1
dns : 192.168.1.1
The code is as follows :
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
Logged
Ricky
LST CareTaker
Specially Skilled
Posts: 2381
Net sharing prob
«
Reply #1 on:
December 27, 2003, 06:25:03 AM »
Your code is right.
Problem is in client side..
In client side change the dns from 192.168.1.1 to the dns of your ISP. else is fine..
Logged
Print
Pages: [
1
]
« previous
next »
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
»
Network Troublshooting
»
General Networking Support in Linux
»
Net sharing prob