LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2002, 02:43 PM   #1
tatkins
LQ Newbie
 
Registered: Apr 2001
Posts: 5

Rep: Reputation: 0
2 nics and redhat 8.0


I have just setup a new server with redhat 8.0 with 2 ethernet cards. One private and one public: etho(209.192.xxx.xxx) netmask 255.255.255.128, and eth1 (192.168.1.2) netmask 255.255.255.0. I used the lokkit during setuo for medium security ( till I get a grip on this). I can setup a laptop on the private side using a static ip of 192.168.1.5, the laptop can ping eth1 and eht0 without a problem. I can ping eth0 from outside and not eth1. The problem is I cannot get the laptop to ping anything on the public side other than eth0, even when I stop iptables and flush all rules . I can't ping eth0's gateway ( the router between my public ip's and my isp) or any other ip on the public side from the private. What am I missing? here is my route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
209.192.xxx.128 * 255.255.255.128 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default gateway 0.0.0.0 UG 0 0 0 eth0

it should be something simple, not sure if I have everything I need in place to get the packets from eth1 to eth0 or atleast past eth0.
just a little confused
TIA
Tom
 
Old 11-26-2002, 02:54 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
To go from Private to Public you will need to have iptables running with IPMASQ settings.

http://www.ecst.csuchico.edu/~dranch...ipmasq/c-html/

-K.
 
Old 11-26-2002, 02:58 PM   #3
tatkins
LQ Newbie
 
Registered: Apr 2001
Posts: 5

Original Poster
Rep: Reputation: 0
this is what I get from lsmod:
Module Size Used by Not tainted
ipt_MASQUERADE 2072 1 (autoclean)
iptable_nat 18872 1 (autoclean) [ipt_MASQUERADE]
ip_conntrack 20316 1 (autoclean) [ipt_MASQUERADE iptable_nat]
iptable_mangle 2680 0 (autoclean) (unused)
ide-cd 31432 0 (autoclean)
cdrom 30976 0 (autoclean) [ide-cd]
soundcore 6180 0 (autoclean)
autofs 12228 0 (autoclean) (unused)
tulip 42304 1
8139too 16680 1
mii 1996 0 [8139too]
iptable_filter 2316 0 (autoclean) (unused)
ip_tables 14456 6 [ipt_MASQUERADE iptable_nat iptable_mangle ipt
able_filter]
mousedev 5236 1
keybdev 2688 0 (unused)
hid 20836 0 (unused)
input 5664 0 [mousedev keybdev hid]
usb-uhci 24524 0 (unused)
usbcore 71680 1 [hid usb-uhci]
ext3 64224 5
jbd 48180 5 [ext3]

I think I have that......
 
Old 11-26-2002, 03:42 PM   #4
tatkins
LQ Newbie
 
Registered: Apr 2001
Posts: 5

Original Poster
Rep: Reputation: 0
my brain cramp just cleared up!!!!!!
reading seems to unclog it.........
thanks for the help
Tom
 
  


Reply



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
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM
Routing issues with multiple nics on ClarkConnect 2.2 (RedHat 9) Killbot_5000 Linux - Networking 1 01-13-2005 10:58 AM
2 NICs w/o bridging RedHat Enterprise jdiemer Linux - Networking 4 08-11-2004 03:26 PM
Setting up Redhat squid gateway with dual NICs wrathyimp Linux - Networking 13 06-12-2003 11:54 PM
2 Nics? SkYzOpReNiCk Linux - Networking 4 07-04-2001 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:19 PM.

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