LinuxQuestions.org
Review your favorite Linux distribution.
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 04-25-2005, 02:53 PM   #1
fipeso
Member
 
Registered: Apr 2005
Location: Finland, Nurmijärvi.
Distribution: Ubuntu 5.04 "Hoary Hedgehog"
Posts: 56

Rep: Reputation: 15
Newbie questions on fw & routing.


Hi,
Im not sure if I should had post this question in newbie section or here.
If im at the wrong place, im very sorry.

So I got a PC with two nic's. Installed Ubuntu on it and Shorewall (http://www.shorewall.net/)

Now with a M$ user and Linux newbie, I thought this be like XP connection sharing, where I get DHCP and routing fixed at the same time.

But it seems that this is not the case.

So I set manual IP addresses on LAN side, and used route add & route del commands to get stuff working. (I have one workstation on my LAN )

Now it DOES work but I just want to ask you guys if im doing things "the right way".

1) So am I correct to assume that iptables (Shorewall) has nothing to do with routing?
2) That is why I have to use the "route add" to set routing to work.
3) If I want to use DHCP on the LAN, I have to install a dhcp server on my fw (or an other server (I dont have other server )).
4) What should I do for DNS? I have dynamic ISP IP.


Thank you.
 
Old 04-25-2005, 03:20 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
1) iptables IS routing.
2) no, that's just your local network, not the routing ontop of it.
3) well of course yes.
4) use their dns servers... if you want local, i'd suggest dnsmasq for a REALLY simple dns proxy
 
Old 04-25-2005, 04:25 PM   #3
fipeso
Member
 
Registered: Apr 2005
Location: Finland, Nurmijärvi.
Distribution: Ubuntu 5.04 "Hoary Hedgehog"
Posts: 56

Original Poster
Rep: Reputation: 15
This is a bit confusing to me.

I could not get to the Internet with the "fw" or "client" PC, before I deleted the default routes on the "fw", and added a new default route to ISP router on the "fw".
(For some reason the "fw" wanted to go out on LAN side to )

I also added my old WLAN router on the LAN. My kids 2 win98 PC's are connected to the WLAN LAN ports. The WLAN router is a NAT router also.

So my Linux LAN is10.0.0.0 and the WLAN is 192.168.11.0.

To get the WLAN PC's to get to the Inet via my Linux LAN, I set manual IP 10.0.0.100 on the WAN side of WLAN, with static DNS from ISP and my "fw" as default gw. That worked ok.

Then I wanted to "add" routing from the 10.0.0.0 to 192.168.11.0 so I added on the "fw" a route to 192.168.11.0 with "route add".

Now I can ping with the win98 pc from 192.168.0.2 to my linux "fw" and "client" ok.

Now should I have done that some other way, than "route add" ?
Or maybe "route add" just alters the iptables also

I dont know how I could have done it with Shorewall though.

*edit* I just noticed that the "route add" thing does not either survive Linux boot, or then Shorewall removes my 192.168.11.0 addition when I restart the firewall. So I guess I have to define the 192.168.11.0 in Shorewall some how

Last edited by fipeso; 04-25-2005 at 04:37 PM.
 
  


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
Newbie questions: about Apache & RPM tiger0516 Linux - Newbie 2 08-12-2004 06:35 PM
routing questions!! yenonn Linux - Networking 2 07-12-2004 02:41 AM
routing questions!!!! yenonn Linux - Networking 2 06-10-2004 06:57 PM
Help newbie for routing.... Lamotta Linux - Newbie 2 04-04-2004 07:31 AM
NTL & LAN (routing) Questions.... vortex-g Linux - Networking 3 10-06-2002 05:59 PM

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

All times are GMT -5. The time now is 03:01 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
Open Source Consulting | Domain Registration