Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-08-2003, 03:31 PM   #1
LQ Newbie
Registered: Jun 2003
Distribution: SuSE 9.3 Professional
Posts: 14

Rep: Reputation: 0
idea: sharing net connection, method: iptables..., problem: broken net connection :(

I just got running a very beautifull redhat9 installation with everything the way i wanted it, ADSL setup and running like a beauty
I decided to try and share my ADSL connection with a windowsXP client on the network ( - my internal IP is
I typed in these commands (okay not fully understanding what they do :P) from a tutorial,
now however, even though my ADSL modem is connected (apparently) i get "unknown host" whenever i try and do anything,
i think all the packets are being dropped/denied probably because of the daft rules i put in there..

can you say :P

anyway, it's teaching me humility but asides from that, i really dont want to reinstall again (have had to do that three times now due to this same thing - setting up IP masquerading)
now ive decided to boot into XP to see if someone here can help me with my problem (hopefully)

is there any way to flush the IPTables rules or disable Iptables (as a short term solution) or perhaps delete the rules I inputed and put in the correct ones?
Old 06-08-2003, 05:31 PM   #2
Registered: Sep 2002
Location: Kaysville, UT USA
Distribution: Red Hat Linux, Slackware
Posts: 242

Rep: Reputation: 30
if you want to flush your iptable rules, while root, type 'iptables --flush' (without the quotes). It would help though, if you posted more informations, such as which commands you entered exactly, and which tutorial you're using. If we know what you've modified, we can help you better.

I can tell you though, that connection sharing in Linux is just a matter of setting up NAT correctly. It's a little confusing at first, but once you get used to it, it's a cake walk.
Old 06-08-2003, 06:30 PM   #3
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
just to get the setup straight:

is the XP computer connected directly to the RH box
and if so, it is with a X-over cable right, and not the
regular straight through.
Old 06-09-2003, 03:51 AM   #4
LQ Newbie
Registered: Jun 2003
Distribution: SuSE 9.3 Professional
Posts: 14

Original Poster
Rep: Reputation: 0
yeah it's physically connected properly with a crossover cable

i beleive the things i typed in where echo > (insert stuff here to turn on IPV4 forwarding :P)
then something else (sorry not being too helpfull here, ill try and find it)
would rpm -e iptables help or would it destroy any chance my machine has of connecting :P

its really strange because now ppoe can't even connect..
Old 06-09-2003, 08:00 AM   #5
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
ok at the very least you should be able to ping just from putting
the cable connection in and having them on the same subnet
192.168.0.X. Try that without being connected to the internet. Just
hook up the 2 computers, get the IP stuff straight, and try to ing
between the 2.


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
sharing net connection with xp machine frosty_kgp Linux - Networking 1 08-23-2005 01:44 AM
Sharing he net connection. BradAus Linux - Networking 1 04-05-2005 05:26 AM
No DNS after sharing net connection OEP Linux - Networking 6 08-12-2004 09:11 AM
Internet Sharing with DHCP connection to the Net Earp Linux - Networking 1 06-15-2003 03:57 PM
net connection problem Please I'm desperate Darkstone Linux - Newbie 1 07-16-2001 10:40 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration