LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2003, 12:57 PM   #1
linuxlois
LQ Newbie
 
Registered: Sep 2003
Location: Italy!!!
Distribution: Slackware!!!!
Posts: 2

Rep: Reputation: 0
Question ADSL Router + Linux Router + LAN = HELP!!!




PROBLEM:

I have to connect a Lan (192.168.10.11/13) with a ADSL router (192.168.254.254). To do this I have to use a linux machine with two network cards. Eth0 will be connected to Router (so I gave it 192.168.254.10) while Eth1 to the lan (so I putted it 192.168.10.10).

I'm working on Slack 8 and I'm totally new to linux (but very willing to learning!!!).

I tried to put on proxyarp (whithout knowing what it is..) and the ipforward to 1. The only result is that everything in the network can ping the other things.

Can someone tell me how to configure that well? (I just need to share the net without firewalling for the moment..)

THANKS in advance!!
 
Old 09-16-2003, 09:14 AM   #2
soob
Member
 
Registered: May 2003
Location: A country town, Australia
Distribution: Debian
Posts: 72

Rep: Reputation: 15
Cripes, I forget what proxy-arp is about too. I don't think you need it for what you're trying to do - I have setup a couple of systems like that. Probably you just need to add some forwarding rules in iptables. The best info I've found is here:

http://tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html

Your external interface is eth0, internal is eth1 - a lot of ip masq writeups assume you have a modem but yours is ethernet.

Couple of others, not quite so up-to-date and i haven't read them:

http://tldp.org/HOWTO/Home-Network-mini-HOWTO.html
http://tldp.org/HOWTO/Masquerading-S...WTO/index.html
 
Old 09-16-2003, 09:24 AM   #3
linuxlois
LQ Newbie
 
Registered: Sep 2003
Location: Italy!!!
Distribution: Slackware!!!!
Posts: 2

Original Poster
Rep: Reputation: 0
Post news

I let everything pass with the forwarding (input output and forward are accept) and I just add the default gateway (the router ip address). this way the linuxpc can ping everything and can access internet, while a client can ping everything inside the network (even the router ip) but not on internet.

Another thing (maybe it's not relevant.. a NAPT is on on the router and if I disable it I cannot connect on internet.. It cannot be set other than just on or off).

 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSL router / DHCP / Linux / Windows XP LAN shazam75 Linux - Networking 0 02-17-2005 06:17 AM
Using router as modem adsl under linux ralmenar Linux - Networking 0 11-14-2004 06:50 AM
ADSL CPE (Linux as Router) naveedpta Linux - Networking 1 05-06-2004 04:51 AM
ADSL Routers Setup- Microsom Deskporte router 100 and Planet ADSL modem router mabonline Linux - Hardware 1 02-27-2004 06:36 PM
Linux ADSL Router paintbox Linux - Hardware 3 09-02-2003 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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