Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an internal network behind my router on eth0, and I have my router connected to the internet thorugh wlan0. I can't access the internet from inside the lan, how can I fix this?

wlan0: 192.168.1.108
eth0:  10.1.1.0/24
share|improve this question

2 Answers 2

up vote 0 down vote accepted

Its the same deal as if it was connected directly to the Internet. Enable NAT, configure your clients to use 192.168.1.108 as Gateway and 10.1.1.1 (or whatever your actual router IP is) as Primary DNS and end of story.

If you want 192.168.1.108 to be the DNS provider aswell, you will have to configure it to relay DNS requests to the actual router.

share|improve this answer

Both 192.168/16 and 10/8 are not routable on the Internet. Your router can't be on the Internet if it has that reserved address. You'll need to find out why it was assigned that address.

share|improve this answer
    
The router is actually just a computer connected wirelessly to the actual-router. The computer is acting like a router to the internal network. –  Figitaki Apr 6 '13 at 3:17
    
OK, so can you do anything from your 10.1.1/24 network? Can you ping the computer-router? The actual-router? Does DNS work on the 10.1.1/24 network? What program are you using to provide router functionality? –  Fred Apr 6 '13 at 3:28
    
I can ping the computer-router from 10.1.1/24 but I can't ping the actual-router. I am just trying to use NAT with the iptables and ip_forward –  Figitaki Apr 6 '13 at 3:29
    
Squillions of things could be wrong. The router software on the computer-router is probably misconfigured. What OS and what router software is computer-router running? Can you ping the 10.1.1/24 machines from computer-router? –  Fred Apr 6 '13 at 3:32
    
I can access everything that is on 10.1.1/24 on all the computers on it but all I want to do is let the computers on 10.1.1/24 access outside networks. I am running debian, and dont have any "router" software. I am running dhcp assigning static addresses on 10.1.1/24 –  Figitaki Apr 6 '13 at 3:37

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.