1827854 Members
1644 Online
109969 Solutions
New Discussion

Re: LINUX as a router

 
SOLVED
Go to solution
Norman_21
Honored Contributor

LINUX as a router

Hi guys,

I have a laptop without a floppy drive, I'm trying to configure my linux as a router with cable modem internet connection but most of the documents that I went through, states that I have to creat a floppy drive. anyone can advise please for step by step configuration without having to boot from a floppy drive.
appreciate your support.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
5 REPLIES 5
Craig Rants
Honored Contributor
Solution

Re: LINUX as a router

Are you trying to run Linux on your laptop? Do you have two NIC's on the Linux machine? I think that you should look at the ipchains documentation for NAT'ing devices.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Norman_21
Honored Contributor

Re: LINUX as a router

Hi Craig,

Yes, that's exactly the case. I do have two NICs in my loptop. Could you provide me with some good links for configuring the IPCHAINS as NAT.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Yogeeraj_1
Honored Contributor

Re: LINUX as a router

hi,

try this link:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x14d20bce6f33d6118fff0090279cd0f9,00.html

or do a search here itself on IPCHAINS. You have tons of information.

Also, an example Linux ipchains NAT:
==============================
Linux 2.2 redirecting eth0 TCP port 80 to Squid on port 3128
Kernel options:
CONFIG_IP_FIREWALL=y

CONFIG_IP_ALWAYS_DEFRAG=y
ipchains ruleset
# Accept local traffic

ipchains -A input -j ACCEPT -i eth0 -d 10.11.12.13/32
# Redirect port 80 to Squid on port 3128
ipchains -A input -j REDIRECT 3128 -i eth0 -p tcp -d 0.0.0.0/0 80

==============================

Hope this helps!
Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Admin32_1
New Member

Re: LINUX as a router

Have you thought about upgrading to IPTables ?
I use to use IPChains and the rules get VERY messy if you want to use the advanced filtering features.

IPTables is a HUGE improvement in packet handling and also will allow you to do simple NAT (NAT Overload Mode) in one single command, something impossible with IPchains.

It takes abit of time to get use to them but I assue you, you will not regret it once you get the hang of them.

If you have used IPchains and understand them, then IPTables will be easy for you.

Cheers,

Chris P.
www.firewall.cx
Norman_21
Honored Contributor

Re: LINUX as a router

Closed...
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003