LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2003, 11:48 PM   #1
fo-krite
LQ Newbie
 
Registered: Jan 2003
Location: Scotland
Distribution: redhat 8, suse 8.0, slackware 8.1
Posts: 4

Rep: Reputation: 0
Talking setting up ip_masqueraiding and firewall on a old linux box


HI all,

can someone tell me what i am doin wrong with this setup::::::::::
COM A: 233Mhz PII, 290MB RAM running redhat 8, two NIC's both recognised and apparently working fine.

COM B: AMD Athlon XP2000 1Gb RAM running redhat 8, one NIC (working fine with DHCP)
I configure eth0 on COM A with my cable modem using DHCP (fine). I then setup eth1 as (and I quote) inet addr: 192.168.0.1 Bcast: 192.168.0.255
Mask: 255.255.255.0........... On COM B I configure eth0 as inet addr: 192.168.0.2 (and so on). am i missing something?? i cannot ping COM A from COM B and vice versa the line is dead Wots going on (gggrrrrr) can anyone help this flailing scotsman>>>>>>>>>
Big Cheers in advance

Fokrite
 
Old 01-22-2003, 02:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
are both interfaces loaded.. i.e. are they listed when you run /sbin/ifconfig? have you got a crossover cable there and not a patch cable?
 
Old 01-22-2003, 04:07 AM   #3
fo-krite
LQ Newbie
 
Registered: Jan 2003
Location: Scotland
Distribution: redhat 8, suse 8.0, slackware 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

Hi Chris,

They both show up on the ifconfig command although a couple of times when I was trying to configure them, eth1 was showing errors with TX packets ? though I did configure them so there was no errors and still no joy????...I was wondering if maybe there were files I had to manually update ?
I have tried changing the 10BaseT cable around but that made no difference. Is there something blatant I am missing???

Thanks, well in advance
 
Old 01-22-2003, 03:58 PM   #4
egoat
LQ Newbie
 
Registered: Jan 2003
Distribution: Redhat, Suse
Posts: 1

Rep: Reputation: 0
Not sure what you are asking, but if the the title is the question then machine doing forwarding needs this - in a nutshell:

Change the line net.ipv4.ip_forwarding /etc/sysctl.conf to =1, then restart.
(Or you can just echo 1 > /proc/sys/net/Ipv4/ip_forward and no reboot

This command to make the appropriate entry in iptables.
/sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

Be sure to update the GATEWAY= eth1 line in ifcfg-eth0 where eth1 is the route out to net.

Now any non-local traffic will wind up going out eth1 as its the default gateway for eth0.

keep warm.
 
Old 01-23-2003, 07:44 PM   #5
fo-krite
LQ Newbie
 
Registered: Jan 2003
Location: Scotland
Distribution: redhat 8, suse 8.0, slackware 8.1
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks mate I will try this out
 
  


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
Linux Box w/ 2 NICs and passive firewall? rruss Linux - Networking 1 04-14-2005 08:15 AM
XP Box won't connect to internet thru RH9 Box (firewall/dhcpd), it can only ping fire Rhapsodic Linux - Networking 4 07-10-2004 03:02 PM
Howto setup two stage firewall? Linux and router-in-a-box? drdirt Linux - Security 5 01-10-2004 02:51 AM
Setting up port orwarding on my Linux Box moy021 Linux - Wireless Networking 1 12-18-2003 02:08 PM
Setting up a Linux box as a router pilot1 Linux - Networking 1 05-10-2003 10:08 PM

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

All times are GMT -5. The time now is 06:48 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