Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th April 2005, 05:13 PM
cristinsimion Offline
Registered User
 
Join Date: Apr 2005
Posts: 5
2 LANs, 1 single gateway, how to separate the LANs?

I have a Fedora Core 1 server, which I use as my internet gateway, with tho ethernet cards: one to the LAN (IPs 10.0.0.x/255.255.255.0) and the other to the Internet.
Recently I added the third ethernet card - for a second LAN (IPs 10.1.0.x/255.255.255.0) which should have access to the internet too through this gateway. The name added by default for the third ethernet card is dev10075 - not eth2 as I expected.
Using the iptables firewall I tried to separate the two LANs but the idea doesn't seem to work. The firewall rules which I added for this are:
iptables -A INPUT -s 10.1.0.0/24 -d 10.0.0.0/24 -j DROP
iptables -A INPUT -s 10.0.0.0/24 -d 10.1.0.0/24 -j DROP
I tried to put these rules in the FORWARD chain or the OUTPUT chain but still I can ping from one LAN to an address in the second LAN.
How can I isolate them? Is the name of the third eth card the problem?
Reply With Quote
  #2  
Old 27th April 2005, 10:11 PM
df12 Offline
Registered User
 
Join Date: Apr 2005
Posts: 102
IPTables is a wonderful thing... So they say... Sometimes it seems more like Voodoo to me. But I think you'll want to put those on the OUTPUT chain and add the device. Assuming eth1 is connected to the 10.0.0.0/24 network and dev10075 is connected to the 10.1.0.0/24 network
Code:
iptables -A OUTPUT -s 10.1.0.0/24 -d 10.0.0.0/24 -o eth1 -j DROP
iptables -A OUTPUT -s 10.0.0.0/24 -d 10.1.0.0/24 -o dev10075 -j DROP
Of course I could be totally wrong
Reply With Quote
  #3  
Old 5th May 2005, 09:45 AM
cristinsimion Offline
Registered User
 
Join Date: Apr 2005
Posts: 5
Thank you

It worked when I moved those rules to the FORWARD chain.
Reply With Quote
Reply

Tags
gateway, lans, separate, single

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webserver with 2 NICs access from 2 LANs toonix Servers & Networking 0 4th March 2009 07:17 AM
Connecting 2 LANs over broadband internet eCubeH Servers & Networking 1 20th June 2008 08:59 AM
SMP kernel installed on single-core single CPU system icthy Installation and Live Media 3 8th December 2006 02:29 PM
One file server, 2 lans mmssix Servers & Networking 4 13th June 2006 01:24 PM


Current GMT-time: 00:14 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat