Need Help!!! Internet Sharing With Ubuntu 9.10

mac550

New Member
Ok i really confused, i am trying to convert my server from windows to ubuntu and when i tried to set up the internet sharing, i got some what spun out. here is the code i have tried,
1. Start by configuring the network card that interfaces to the other computers on you network:

# ifconfig ethX ip

where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)

2. Then configure the NAT as follows:

# iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

where ethX is the network card that the Internet is coming from

# echo 1 > /proc/sys/net/ipv4/ip_forward

3. Install dnsmasq and ipmasq using apt-get:

# apt-get install dnsmasq ipmasq

4. Restart dnsmasq:

# /etc/init.d/dnsmasq restart

5. Reconfigure ipmasq to start after networking has been started:

# dpkg-reconfigure ipmasq

6. Repeat steps 1 and 2.

7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf

# gedit /etc/sysctl.conf

step 7 is the part that is confusing me, if i try typing it into the terminal it says command not found and if i try editing the sysctl.conf file it work let me save it

am i just being a dumb ass and not reading it right or what? can some please tell me how to do it.

Thanks
:good:
 
Ok im truly baffled, i tried the guild in OP countless times but it didnt work then i installed firestarter and now im only i get a ping from windows to my server (ubuntu) and to my router, cant ping any WAN servers, vista is telling me im connected to the internet and i can play online games. but i cant view any normal websites or connect to my isp's pop server.

what the on earth is going on?
 
/thread, i got it working, it was the wifi and lan networks subnet addresses conflicting with each other.
 
Back
Top