LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2003, 12:59 PM   #1
nobody
LQ Newbie
 
Registered: May 2002
Distribution: SUSE 10.1, slackware 10.1, LFS 6.2
Posts: 10

Rep: Reputation: 0
routing problem with the same subnet


I want to set up a firewall.
To make it step by step I wanted first to set up a router and when the "normal" routing works I planned to install the firewall. Therefore I set up a machine with SuSe 8.1 and installed only the minimum system on a linuxbox with 2 ethernetcards.
I used 2 different IP-addresses on the same network and 2 different subnetmasks for these cards (eth0 192.168.200.63 subnetmask 255.255.255.192 and eth1 192.168.200.66 subnetmask 255.255.255.0).
On the side of eth1 there are some machines with addresses in the range form 192.168.200.40 to 192.168.200.57 ont the side of the eth1 the IP-addressses range from 192.168.200.101 to 192.168.200.252.
As far as I understood the help-files and howtos of my distribution I only had to set the value in the file /proc/sys/net/ipv4/ip_forward to 1 to get the router working.
When I tried it first all looked fine. From the "router" I pinged machines on both segments and got the correct replies from both segments. Then I tried to ping the both ethernetcards (eth0 or eth0) of the router from other machines on the segments and got correct replies. But when I tried to ping from a machine from segment 1 (eth0) to a machine from segment 2 (eth1) I got the answer "Host unreachable".
So I searched the help-files and howtos in the internet to find out what I've done wrong. But all I found where different methods of setting the value in ip_forward to 1.
So I dont know what to do.
Could it be that the problem is that both ethernetcards have the same networkaddresses (192.168.200)?
But I need this cause otherwise I had to change the addresses in a lot of machines an din a lot of programs. Or is something wrong with my subnetmasks? But as far as I know they should be correct. Nevertheless I also tried to use the same subnetmask on both ethernetcards. But then, as I thought before, it was not possible to ping the ethernetcards of the router from other machines.

I hope someone could help me.
 
Old 10-03-2003, 02:23 PM   #2
ocularbob
Member
 
Registered: Nov 2002
Location: brooklyn NYC
Distribution: gentoo
Posts: 212

Rep: Reputation: 30
im not the grand master if firewalls and routing but as i understand it, a firewall and a router are both results of what you do with ip_tables. ip_tables monitors, filters, and controls every packet in and out if your machine.
so basically set up your firewall because that is where you tell ip_tables what to do with packets incoming to your two interfaces.

since you're on suse there will be a firewall config program in YaSt. if i remember right there is somewhere to setup connection sharing(routing or forwarding).

hope thats somehow useful

Last edited by ocularbob; 10-03-2003 at 02:25 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
routing http traffic to the correct box on subnet nodine Linux - Security 1 07-15-2004 09:51 AM
routing from one subnet to another NetAX Linux - Networking 2 06-16-2004 08:10 AM
Help with Subnet Routing xatmes Linux - Networking 6 04-26-2004 11:52 PM
Aargh!!! Not routing to local subnet sancho5 Linux - Networking 5 02-10-2004 02:11 AM
NAT'd subnet routing question ealpert1 Linux - Networking 10 05-19-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration