ComputerForum.com ComputerForum.com  

Go Back   Computer Forum > Computer Hardware > Computer Networking and Servers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-05-2009, 10:14 PM   #1 (permalink)
Diamond Member
 
mac550's Avatar
 
Join Date: May 2008
Location: Cornwall, UK
Age: 21
Posts: 1,556
Default Need Help!!! Internet Sharing With Ubuntu 9.10

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,
Quote:
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
__________________
Quote:
If You Can't Fix It With Duct Tape, You Ain't Used Enough
Quote:
Free Software Is Better Than Open Source
mac550 is offline   Reply With Quote


Old 11-06-2009, 04:22 AM   #2 (permalink)
Diamond Member
 
mac550's Avatar
 
Join Date: May 2008
Location: Cornwall, UK
Age: 21
Posts: 1,556
Default

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?
__________________
Quote:
If You Can't Fix It With Duct Tape, You Ain't Used Enough
Quote:
Free Software Is Better Than Open Source
mac550 is offline   Reply With Quote
Old 11-06-2009, 09:14 PM   #3 (permalink)
Diamond Member
 
mac550's Avatar
 
Join Date: May 2008
Location: Cornwall, UK
Age: 21
Posts: 1,556
Default

/thread, i got it working, it was the wifi and lan networks subnet addresses conflicting with each other.
__________________
Quote:
If You Can't Fix It With Duct Tape, You Ain't Used Enough
Quote:
Free Software Is Better Than Open Source
mac550 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up internet sharing CSKomp Computer Networking and Servers 1 04-28-2008 07:38 PM
internet on ubuntu hackapelite Internet Discussion 0 02-21-2008 10:50 AM
Internet Sharing Problem tk26 Computer Networking and Servers 2 11-17-2005 03:34 PM
Internet Connection Sharing kills network thestoat Computer Networking and Servers 3 02-23-2005 12:13 AM


All times are GMT +1. The time now is 11:19 PM.


Powered by: vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.