Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Thank for reading my post. I have setup Ubuntu 12.04 server on an unused box. My idea is to use it for development and as a router. I have 2 network cards installed. eth0 is connected to my ADSL modem. It has been put in bridge mode and I can connect to it and surf the web via command line in a terminal window. eth1 is connected to a Netgear N300 wireless router. I want the router to maintain the wireless connection so I have setup the router to get ip's from external host. This seems to work because both wired and wireless connected PC's get ip's as specified in my dhcp setup.

I followed a number of tutorials for the setup and did the following. Installed bind, dhcp and setup the network interfaces. My network.interfaces is setup like this: eth0 dhcp dsl-provider inet ppp eth1 static address 192.168.10.1

dhcpd.conf setup with a ip range of 192.168.10.10 - 192.168.10.100

isc-dhcp-server is set to eth1 ip_forward set to 1 in sysctl.conf

I have added iptables rules and also removed them. I tried many options found on the net but I can never get any connected PC's to have internet.

I can get an ip using dhcp on windows, ping the router from windows, see its apache webserver and even use webmin but I cannot surf the web. Please help; I have been frustrated by this for a few days now. It just seems that no matter what iptables changes I make it makes no difference. Any help would be appreciated.

Output from route -n

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 203.215.9.249 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0

Output from ifconfig:

eth0 Link encap:Ethernet HWaddr c0:4a:00:03:b8:57
inet6 addr: fe80::c24a:ff:fe03:b857/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:32756 errors:0 dropped:0 overruns:0 frame:0 TX packets:16689 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:40066231 (40.0 MB) TX bytes:1432743 (1.4 MB)

eth1 Link encap:Ethernet HWaddr 00:1e:c9:3e:f2:b4
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: fe80::21e:c9ff:fe3e:f2b4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8307 errors:0 dropped:0 overruns:0 frame:0 TX packets:3397 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:850486 (850.4 KB) TX bytes:1626159 (1.6 MB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:227 errors:0 dropped:0 overruns:0 frame:0 TX packets:227 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:15573 (15.5 KB) TX bytes:15573 (15.5 KB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:... P-t-P:203.215.9.249 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:27538 errors:0 dropped:0 overruns:0 frame:0 TX packets:15858 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:38982044 (38.9 MB) TX bytes:945159 (945.1 KB)

virbr0 Link encap:Ethernet HWaddr 06:fe:c2:46:9b:55
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.