LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-17-2003, 09:51 AM   #1
pacwarebrz
LQ Newbie
 
Registered: Sep 2003
Distribution: Slackware 9.0
Posts: 2

Rep: Reputation: 0
Lightbulb configure a linux box to ADSL Speedstream Modem


Hi !
My scenario is:
- ADSL modem Speedstream 5200 (only one port Ether plug on eth0)
- Linux BoX with Slack 9.0 with classical pentium 75Mhz, 24M Ram, 10 Gb Hdd and 2 3c509 etherlink III.

What a need to:
- Connect internal Lan to Internet with a firewall (and NAT, of course ... don't forget people .. I'm a newbie).
- I don't have any service on Linux Box (e.g. ftp server, www server ...). With port should I enable to my clients access e-mail (Argh !! Outlook) and web pages ?
I know ... it's a simple question ... but ...
I'm Newbie !

Thanx !
 
Old 09-18-2003, 03:58 PM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
I shall assume that the box which the ADSL modem is connected to can access the Internet fine.

First you must enable routing. This is done by adding or changing the line for net.ipv4.ip_forward to equal one in /etc/sysctl.conf.

Next edit /etc/iptables.conf to contain these lines:

-A INPUT -i lo -j ACCEPT
-A INPUT -i eth1 -j ACCEPT
-A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -j LOG
-A INPUT -j DROP
-A FORWARD -i eth0 -m state --state NEW,INVALID -j DROP
-t nat -A POSTROUTING -o eth0 -j MASQUERADE

This should set up a firewall which allows all outgoing connections and denies all incoming connections. It also masquerades any outgoing connections. The man pages for iptables contain detailed information on each of the commands used (and more).

P.S. I have assumed that eth0 is the ASDL modem and eth1 the home network. Swap these if they are the other way round.
 
Old 09-18-2003, 04:38 PM   #3
pacwarebrz
LQ Newbie
 
Registered: Sep 2003
Distribution: Slackware 9.0
Posts: 2

Original Poster
Rep: Reputation: 0
Thanx !!

My doubt was in routing process ...
After testing many Howtos ... aparetly this solve my problem.
I'll testing and reply here !!

Thanx a lot !!

Linux 4all 4ever !!
 
  


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
Soon To Be Using Slackware Linux 10.1 - Need Help With Speedstream 5200 ADSL Modem panthrax Linux - Hardware 3 08-17-2005 06:05 AM
Any one know how to configure BSNL ADSL modem Pradeep Kashyap Linux - Networking 3 08-13-2005 12:51 PM
How to configure ADSL PCI Internal Broadband Modem with Suse Linux 9.2 Pro tedsmith Linux - Networking 2 04-10-2005 04:18 PM
can't get D-Link 704P rev A router to coexist with speedstream 5100 ADSL modem towarzysz Linux - Networking 0 08-17-2004 02:16 PM
driver for modem adsl usb speedstream 4060 nitro20 Linux - Hardware 3 10-08-2003 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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