LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2003, 07:53 AM   #1
FairyFighter
LQ Newbie
 
Registered: Jul 2003
Location: Antwerp/Belgium
Posts: 22

Rep: Reputation: 15
Linux as getway to internet


Hi there,

As I am not thet good in Linx I like to use it for sharing my internet connection. I have Slack running nicely in here with ADSL connection. It works very good no problem with it. So next step is to connect my internal network (one WinXP) to internet via Linux box. It is for my girly . I use my Linux as file server, SAMBA is working nice(with one user), I have this ProFTP working...
what I have done till now? just searched internet, found this forum, readed few topics... but actualy I do not have a idea how toi start with something like that. what do I need? Where do I start?

kind reagrds
Darek

PS
my next idee is to get rid of this WinXP and instal Linux on it as wel. as this WinXP PC is way more performant, I use it to play games on it, I will try to make few games running on Linux. but there for I fonud here few interesting topics. If I am to stupid to get thru it You will notice it
 
Old 07-15-2003, 10:35 AM   #2
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
to set up your Linux box as a Gateway, you'll need to look into IP Masquerading.

Try The Linux Documentation Project as there is a good HowTo on IPMasq.
 
Old 07-15-2003, 10:49 AM   #3
FairyFighter
LQ Newbie
 
Registered: Jul 2003
Location: Antwerp/Belgium
Posts: 22

Original Poster
Rep: Reputation: 15
Tnx for Your response.

I have visited already. I am on holliday now so reading is my ocupation for the moment .
And I get litle bit further.
http://www.telematik.informatik.uni-...OWTO.html#toc2

reading this docs helps a lot.. but still no progress...
I am afraid that I am confiusing things... Do I need Masquerade or ipchains?

any ideas about it?
 
Old 07-15-2003, 11:10 AM   #4
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
IPChains is, dare I say it, obsolete. You'll want to set up a masquerading firewall using IPTables (http://www.netfilter.org). There are plenty of documentation linked to from there, and I believe some IPTables frontends will let you set up masquerading in a breeze (will probably still require some manual tweaking though).
 
Old 07-15-2003, 11:10 AM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
It depends on the kernel.
Kernel 2.4, use iptables
Kernel 2.2, use ipchains
Kernel 2.0, use ipfwadm


Linux IP Masquerade HOWTO
http://www.linux.org/docs/ldp/howto/...WTO/index.html
 
Old 07-15-2003, 11:16 AM   #6
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
Of course, good that you pointed it out. I'm probably too eager assuming everyone runs 2.4.x these days...
 
Old 07-15-2003, 02:06 PM   #7
aes12
LQ Newbie
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Slackware 8-1
Posts: 23

Rep: Reputation: 15
You may want to look into NARC (Netfilter Automatic Rules Configurator). I use it at home in exactly the way you describe. Basicly, rather than get down and dirty with all of the IPtables commands, you edit a fairly simple configuration file, run the script, and you're all done.

http://freshmeat.net/projects/narc/?topic_id=43

I'm assuming you realize that you'll need a second network card. All you do is set the internal network to the ETH# that goes to your internal network and the external network to either ETH# or PPP#, if you're using PPPOE ADSL. Good luck, and let us know how it turns out.
 
Old 07-16-2003, 03:40 AM   #8
FairyFighter
LQ Newbie
 
Registered: Jul 2003
Location: Antwerp/Belgium
Posts: 22

Original Poster
Rep: Reputation: 15
WOW!!!

I used this narc thing... And it WORKS!!!

But nowI have seriuos problem:
HOW? and WHY???


yeah, yeah... I hear You saying: RTFM... I know, I know...
staring reading...

Hey Guys, thank You very much for hints and your time.

Darek

PS
I love this forum
 
Old 07-16-2003, 09:57 AM   #9
aes12
LQ Newbie
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Slackware 8-1
Posts: 23

Rep: Reputation: 15
Well, the short answer is that NARC is nothing but a script that looks at narc.conf and runs the appropriate firewall commands for you. It's especially nice because it does some fairly advanced stuff that a newb like myself would never think to do, and it's been tested enough that it works almost all of the time. I think the next step is to add a pretty little GUI for X, so that you can set up all of that stuff without editing the conf file. I know that editing files is linux-bread-and-butter, but for people who just want to use the system, a GUI would go a long way towards establishing percieved ease of use.

If you wanted to see exactly what it's doing, read over the script itself, and spend some quality time with the iptables documentation. In other words, RTFM! ;^)


 
  


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
XP-Linux Internet network linux gateway ALInux Linux - Networking 1 05-16-2005 06:11 AM
ok. reply if you can help me with my modem, Linux+Internet= :), Linux €/ Internet= Wi carrie Linux - Hardware 1 10-24-2004 10:13 AM
please guide me on networking from my lan to a getway, located at server farm bytes00 Linux - Networking 8 09-08-2004 08:41 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
sharing internet connection from linux to another linux priest_judas Linux - Networking 7 12-15-2003 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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