Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have redhat 7.3. Previously connected to the internet via a ppp connection through a alcatel home pro adsl modem. My linux box did all firewalling, snatting and routing.
I have now changed my setup so that I have a dynalink (askey) RTA 300 adsl router.
I have changed my routing table (default gateway) to use the RTA 300 (with lan ip address of 192.168.1.1).
My linux box has been reconfigured with a LAN ip address of 192.168.1.2 (eth0) and 192.168.0.250 (eth1).
The firewall is still running on the linux box - restricting users on the 192.168.0.X side of the network on the ports they are allowed to access the internet with.
There is NO problem with the machines on the 192.168.0.X address range connecting to the internet - they work ok.
I have another PC on the 192.168.1.X network which connects to the internet ok.
Bugga me if I can get the linux box to connect to the internet - the most I am able to do is ping a web site. I can smtp into the linux box from the internet (have virtual server setup on RTA 300) and can receive emails but cannot send.
Here is a visual representation of the network:
INTERNET
|
|
ADSL Router (192.168.1.1) ----- PC (192.168.1.10)
|
|
eth0 - 192.168.1.2
Linux Box A
eth1 - 192.168.0.250
|
|
Linux box B(192.168.0.1)
Linux Box B can connect to the internet using Linux box B as router/gateway but I cannot connect to the internet directly from Linux Box A...
I have named running, but to try and sort my problem out I have changed my resolv.conf to be somehing like this:
Quote:
nameserver 202.27.184.3
nameserver 192.168.0.250
So it goes to 202.27.184.3 for dns.
As far as I can tell, DNS is working OK because I can ping www.google.com from my linux box and it resolves and replies.... pinging is the only thing that is working both ways..
I should also mention that I can lynx to my RTA 300 adsl router without a problem (ie lynx 192.168.1.1). But cannot lynx to www.google.com.
It stalls on "Making HTTP connection to www.google.com"
But yet Linux box A passes traffic through from machines on the other (192.168.0.X) side of the linux box....
I can smtp onto Linux Box A from the internet and receive mail but cannot get anything but pinging working on the outgoing side of things.... UNLESS it comes from Linux Box B (192.168.0.1) through Linux box A (192.168.0.250) ....
?????????????
Hi, Thanks for the suggestion. I have (i think) ruled out the firewall by having the following rules in my script..
Quote:
$IPTABLES -A OUTPUT -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -j ACCEPT
$IPTABLES -A INPUT -j ACCEPT
So i presume that my firewall is not stopping anything.
PS. All Dropped IPTABLES packets are logged into a MYSQL database and displayed on web page and I cannot see any packets getting dropped by the firewall.........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.