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.
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.
|
|
07-24-2003, 04:53 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Czech Republic
Distribution: Mandrake 9.1
Posts: 18
Rep:
|
strange routing/IP forwarding behavior
Hi all,
i've got a linux box (Mandrake 9.1) acting as a server - it has 2 NICs, each of them is connected to a windoze client via a crossed UTP cable. There is also a modem in the linux box, and i am able to acces outside world from the clients (by means of NAT). Everything works fine, except one thing - the two clients don't see each other!
To be specific, i can e.g. ping both client boxes from the linux box, i can also ping the linux box from each client, and i can ping machines in the internet from the clients as well as from the server. But a ping sent from one client to another (ment to be forwarded throug the server) always time outs, as well as any other TCP/IP connection attempt.
This is not a matter of disabled IP forwarding (note that accessing the outside world from the clients works fine) as well as not iptables issue - clients don't see each other with iptables disabled...
Any clue?
|
|
|
07-24-2003, 05:42 PM
|
#2
|
Member
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341
Rep:
|
There's probably a better way, but in a router, I'd put this in the iptables script:
iptables -A FORWARD -i $LAN_NIC1 -o $LAN_NIC2 -j ACCEPT
iptables -A FORWARD -i $LAN_NIC2 -o $LAN_NIC1 -j ACCEPT
|
|
|
07-25-2003, 02:44 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: Czech Republic
Distribution: Mandrake 9.1
Posts: 18
Original Poster
Rep:
|
Hmmm it's still the same (actually i'd be kinda surprised if that worked, the FORWARD chain policy has been set to ACCEPT all the time). Anyway, thanks for your effort to help me je_fro...
Seems i gotta try tcpdump and see what's actually happening on the interfaces...
|
|
|
07-25-2003, 10:10 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Location: Czech Republic
Distribution: Mandrake 9.1
Posts: 18
Original Poster
Rep:
|
So, the problem has been solved. I assigned both clients IPs within the same subnetwork (192.168.1.X) and that was the problem - when a client wanted to send a packet to the other one, it logically did't know it should be send to the gateway (the linux box) and sent an ARP request instead (which, of course, could have not been answered). So i changed IP of one of the clients to 192.168.2.X and it works.
Thanks everyone for reading my post (and especially je_fro for trying to help).
|
|
|
All times are GMT -5. The time now is 10:56 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
|
|