LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 nics and redhat 8.0 (https://www.linuxquestions.org/questions/linux-networking-3/2-nics-and-redhat-8-0-a-36541/)

tatkins 11-26-2002 02:43 PM

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

KevinJ 11-26-2002 02:54 PM

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.

tatkins 11-26-2002 02:58 PM

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......

tatkins 11-26-2002 03:42 PM

my brain cramp just cleared up!!!!!!
reading seems to unclog it.........
thanks for the help
Tom


All times are GMT -5. The time now is 11:16 AM.