Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-04-2007, 02:11 PM
|
#1
|
|
LQ Newbie
Registered: May 2006
Location: Lucca, Italy
Distribution: Arch, Debian, Ubuntu
Posts: 12
Rep:
|
Cannot reach some sites from LAN
An Ubuntu box connects to the Internet through ADSL (pppoe) and acts as a router for a small LAN. Between the router and the other machines there's an access point for wireless connection. Nearly everything works fine, except for the fact I cannot reach some sites from the internal network. I can browse the same sites from the Ubuntu box, but not from the others that are behind it. And, again, only a small list of sites is unreachable.
I tried keeping it as simple as possible, setting the ip forwarding to 1, flushing all of the iptables chains with
Code:
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
and then activating masquerading with
Code:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
but with no success.
What else can I do to solve this problem?
Thanks.
|
|
|
|
02-04-2007, 02:55 PM
|
#2
|
|
Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
|
What sites are you trying to see that Ubuntu can and the lan machines cannot?
Brian
|
|
|
|
02-04-2007, 03:20 PM
|
#3
|
|
LQ Newbie
Registered: May 2006
Location: Lucca, Italy
Distribution: Arch, Debian, Ubuntu
Posts: 12
Original Poster
Rep:
|
http://www.rai.it, for example.
What are you thinking about?
|
|
|
|
02-04-2007, 03:39 PM
|
#4
|
|
Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
|
That is just odd. If the iptables is flushed and simply masquerade setup then I am at a lost. The IP the site is using was not part of the non-used ones. There use to be a group of ips reserved not for use and one can add those to the iptables to block them in the event they were used in packet hacking.
Site comes up fine through my linux router which then goes through a wireless store bought router to get to my notebook.
I am guessing every lan machine cannot connect?
I would contact the manufactor of the wireless router. Check the faqs and docs on their site.
Brian
|
|
|
|
02-04-2007, 04:16 PM
|
#5
|
|
LQ Newbie
Registered: May 2006
Location: Lucca, Italy
Distribution: Arch, Debian, Ubuntu
Posts: 12
Original Poster
Rep:
|
Yes, every machine but the gateway (the Ubuntu one). It actually seems a gateway's problem, because it comes out even through the wired network. I will try a live distro to see if it's a hardware failure.
|
|
|
|
02-05-2007, 05:18 PM
|
#6
|
|
Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
|
No more ideas as to the reason it does that and no other ideas to try.
Brian
|
|
|
|
02-05-2007, 06:58 PM
|
#7
|
|
LQ Newbie
Registered: May 2006
Location: Lucca, Italy
Distribution: Arch, Debian, Ubuntu
Posts: 12
Original Poster
Rep:
|
Thanks anyway. I'll post here the results of any other try.
|
|
|
|
03-14-2007, 10:03 AM
|
#8
|
|
LQ Newbie
Registered: May 2006
Location: Lucca, Italy
Distribution: Arch, Debian, Ubuntu
Posts: 12
Original Poster
Rep:
|
Ok, I solved it.
I first thought about an MTU problem: pppoeconf sets it to 1492 for the ppp0 interface, due to the package size most ISPs adopt. So I set the MTU to 1492 for every interface, instead of the default 1500, but with no result.
What actually did the trick was installing ipmasq. It does all the dirty work of ip forwarding and masquerading.
What I still don't understand is why even a fresh Debian install needs ipmasq to properly forward, expecially if I think that everything worked fine before I opened this post...
|
|
|
|
03-14-2007, 07:35 PM
|
#9
|
|
LQ Newbie
Registered: Apr 2006
Posts: 4
Rep:
|
I'm a newb, May i ask how did you install ipmasq? did you do it with synaptic or command line?
Your help is appreciated?
|
|
|
|
03-15-2007, 10:08 AM
|
#10
|
|
LQ Newbie
Registered: May 2006
Location: Lucca, Italy
Distribution: Arch, Debian, Ubuntu
Posts: 12
Original Poster
Rep:
|
It doesn't matter which one you use. Either install it via Synaptic or running
Code:
apt-get install ipmasq
being sure you activate the right repository ( universe for Ubuntu).
It's quite straightforward, you don't need to configure it for a basic use.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|