LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-02-2003, 06:19 PM   #1
bandit12
LQ Newbie
 
Registered: Feb 2003
Location: Bristol UK (53rd State of America)
Distribution: RH 8 Gnome / KDE
Posts: 22

Rep: Reputation: 15
Question Redhat 8 Home network Problems


I have read three or four tutorials on the subject still none the wiser.
this one was the best seemed to make some sort of sense at the time

http://newbiedoc.sourceforge.net/tut...config.html.en

followed the instructions for iptables to the letter and not a peep from the browser but i can ping all of the workstations but not the cable box

only the box with two net cards in gets the web.

what files should I be looking at for clues ?

what are the possible errors that I have made?

How do I correct them?

Please Help

Being a newbie I still cant see the woods for the trees but am sure managing to bump in to lots of them DOH!!!
 
Old 03-02-2003, 08:40 PM   #2
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
So what's the setup?

What kernel version?

Do you have:
1) A computer running redHat and two ethernet cards eth0, and eth1?
2) The internet connected to eth0, and another computer hooked to eth1?

What OS is on the internal computer?
More info please.
 
Old 03-03-2003, 04:44 AM   #3
bandit12
LQ Newbie
 
Registered: Feb 2003
Location: Bristol UK (53rd State of America)
Distribution: RH 8 Gnome / KDE
Posts: 22

Original Poster
Rep: Reputation: 15
Information as follows

RedHat 8 Kernel version 2.4.18-24.8.0

Pc connected to internet has two network cards

eth0 to (NIC Intel 3905x) DHCP configured, internet via cable modem (Provider Telewest Broadband, Modem Motorola Surfboard 2400
eth1 to (NIC Intel 3905x) home Lan static IP 192.168.0.1

home Lan PC's (NIC Intel 3905x) one running Redhat 8 Kernel Version 2.4.18-24.8.0 Static IP 192.168.0.5

the other running XP Pro SP2 (NIC Intel 3905x) static IP 192.168.0. 2
 
Old 03-03-2003, 07:23 AM   #4
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
Are you using lokkit?

Or have you generated a firewall scrit and placed it in /etc/sysconfig/iptables?

I think the best way to go is to write your own script for the router.
Open an editor and put:
#!/bin/sh
EXTIF="eth0"
INTIF="eth1"
echo " External Interface: $EXTIF"
echo " Internal Interface: $INTIF"
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
iptables -P INPUT DROP
iptables -F INPUT
iptables -P OUTPUT DROP
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F
iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
iptables -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
iptables -A INPUT -p ALL -i $INTIF -s 192.168.0.0/8 -j ACCEPT
iptables -A OUTPUT -p ALL -s 127.0.0.1 -j ACCEPT
iptables -A OUTPUT -p ALL -o eth1 -j ACCEPT
iptables -A OUTPUT -p ALL -o eth0 -j ACCEPT


That should get you going. If you save the file as "firescript", make it executable by: chmod 700 firescript
then: sh firescript
then see if it was loaded: iptables -L
then: iptables-save > /etc/sysconfig/iptables
(All that was done on your router)
Then make sure you're using crossover cables.
Set up new internet connections (using wizard) in each networked box.
(You'll need to get DNS addresses for the internal boxes from the router)

I think that's pretty close...
If you get errors, go here and look for modules to load by adding them to the above script. Good luck!!
 
Old 03-03-2003, 07:41 AM   #5
bandit12
LQ Newbie
 
Registered: Feb 2003
Location: Bristol UK (53rd State of America)
Distribution: RH 8 Gnome / KDE
Posts: 22

Original Poster
Rep: Reputation: 15
thanx for the info will give that a go tonight when I get home from work and let you know the result.
 
  


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
Hostname/Routing problems with home network robintw SUSE / openSUSE 15 01-08-2005 08:55 AM
XP - SuSE 9.1 home network problems tardigrade Linux - Networking 18 07-10-2004 02:25 AM
problems connecting to the internet via private home network pinzerbib Linux - Newbie 3 04-20-2004 05:27 PM
2 PC Home samba network, One way transmits fine, the other way has problems.... gamebeavis Linux - Networking 2 09-14-2003 05:37 PM
Redhat 7.3 and ADSL routing to home network, help required. Danners Linux - Networking 4 11-21-2002 05:18 PM


All times are GMT -5. The time now is 06:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration