LinuxQuestions.org
Visit Jeremy's Blog.
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 11-26-2003, 07:27 PM   #1
jeempc
Member
 
Registered: Mar 2003
Location: Ann Arbor, MI
Distribution: Slackware 10.1
Posts: 119

Rep: Reputation: 15
slackware w/out X Window + internet gateway


Hello all.
I have successfully used slackware to be a gateway to the Internet for all my home computers.
I am using webmin to set up the masquerading/forwarding function.
My question is:
How do I do this without installing Webmin.
I want the machine to be a gateway but don't want to rely on a gui interface to set up the gateway.--I don't want to install X Window on the machine at all because of security and cpu reasons.
In other words, what is the magic config file that Webmin sets up to make all this happen.
Can I find this file copy it and reinstall my system without X Window and still use the machine as a gateway to the Internet?
I sort of understand how RedHat does this but always used RedHat's gui's before.

Bottom line: I want a command line only router to the internet.
TIA
JEEM
SIA
 
Old 11-26-2003, 07:50 PM   #2
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
maybe you want to try a router distro... takes the fuss out of the setup.
 
Old 11-26-2003, 08:27 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
maybe you want to try a router distro... takes the fuss out of the setup.
Which distro without X would have that
well perpared? ;)

Cheers,
Tink
 
Old 11-26-2003, 08:30 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I don't use webmin for my "headless" server/gateway.

All commandline.

And all you need to do is a
iptables-firewalling script
and two adapters set-up in
/etc/rc.d/rc.inet1
(given that you have a ethernet
connection to the internet otherwise
you have to set-up pppd, too, which
isn't that hard.)

What exactly are you using webmin
for? :}

Cheers,
Tink
 
Old 11-27-2003, 09:37 AM   #5
jeempc
Member
 
Registered: Mar 2003
Location: Ann Arbor, MI
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
I am using Webmin as the firewall front end I guess. It has an option for masquerading which is what I want. I probably only need a good firewall script that does masquerading.

"And all you need to do is a
iptables-firewalling script"

Does anyone have such a script?
Jeem
 
Old 11-27-2003, 01:46 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
Originally posted by jeempc
I am using Webmin as the firewall front end I guess. It has an option for masquerading which is what I want. I probably only need a good firewall script that does masquerading.

Does anyone have such a script?
Jeem
It's a safe bet to assume that Webmin has
created one for you ... I wouldn't know where
it put it, though. Have a
grep -r iptables /etc/*

;)


Cheers,
Tink
 
Old 11-27-2003, 02:37 PM   #7
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
if you care to know how it does it, and what you need to do so YOU can do it. have a look at this.

http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/

this is will explain how and what happens.
 
Old 11-27-2003, 02:50 PM   #8
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
coyote linux?
 
Old 11-28-2003, 02:01 AM   #9
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
You might want to take a look at Jay's Firewall. It's a ncurses-based gui for setting your IPtables rules, so it kinda resembles menuconfig or pkgtool.

Enjoy!
--- Cerbere
 
Old 11-28-2003, 03:26 AM   #10
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 30
another good choice is www.fli4l.org - a single disc distribution for routers.

BTW: Webmin is called "Web"min for a reason. if you don't want to have X on that box use either links or lynx or connect from a remote machine.
 
Old 12-25-2003, 10:24 AM   #11
jeempc
Member
 
Registered: Mar 2003
Location: Ann Arbor, MI
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
Hello all. I found the perfect solution. I did a new install of slack without X window and used rc.firewall for the internet gateway.
There is a rc.firewall install script that sets it all up.
Thanks
Jeem
 
  


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
Going to the Internet by a gateway Jose Santos Linux - Newbie 1 05-26-2005 12:43 PM
Gateway (to the internet) Pedroski Linux - Networking 11 06-05-2004 05:17 PM
Gateway for internet mfeoli Linux - Newbie 4 01-19-2004 12:14 PM
INternet Gateway lil213 Linux - Networking 0 11-06-2003 03:44 PM
Internet gateway fxlee Linux - Networking 1 01-06-2002 11:33 AM


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