Quantcast

Maximum PC

It is currently Thu Dec 25, 2014 12:52 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Ubuntu as a Firewall
PostPosted: Thu Feb 19, 2009 5:19 am 
SON OF A GUN
SON OF A GUN
User avatar

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
Just looking to see if there is anything obvious that I might have missed...

I followed this guide...
http://ubuntuforums.org/showthread.php? ... c&t=926001

and it doesn't appear that I am getting any IP address from the box when I try to use it in place of my Linksys router.

Has anybody else done this recently? Have any other suggestions? I want to be able to use this box as an FTP / file server / web server (maybe) etc as well. I picked Ubuntu because due to my last job it was the distro I have used the most / most recently and I was reasonably familiar enough with it to make it work how I wanted to.


Top
  Profile  
 
 Post subject: Re: Ubuntu as a Firewall
PostPosted: Thu Feb 19, 2009 9:44 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
I haven't done a linux router in a long time.

I'm confused about this though..

CrashTECH wrote:
and it doesn't appear that I am getting any IP address from the box when I try to use it in place of my Linksys router.


Is it not handing out addresses to other machines or can you not see the box on your LAN?

The first would steer me towards DHCP. The second, I'd probably be using static IPs in the same subnet as everything else.


Top
  Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2009 11:12 am 
SON OF A GUN
SON OF A GUN
User avatar

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
Client machines don't get IPs from the Router/Firewall box.

I set up DHCP3, and the subnet, and all that jazz. Just like the guide says. I get a virtual/private 169 ip address.

The nic (eth1) that is supposed to dish out IP addresses has a static IP of 192.168.0.1 (just as in the guide). eth0 (internet) is DHCP.


Top
  Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2009 11:30 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
Hopefully someone else will chime in.

Would staticly assigning an IP on the one that's supposed to get an address confirm anything?


Top
  Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2009 12:21 am 
Sharptooth
Sharptooth
User avatar

Joined: Thu Sep 20, 2007 5:57 pm
Posts: 386
I just got done setting this up, but I am using OpenSuSE 11.0. I am using a separate dhcp server. Did you set the dhcp service to be bound to eth1? I'll do some looking to see how to set that up in Ubuntu.


Top
  Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2009 7:41 am 
TravBv2.0
TravBv2.0
User avatar

Joined: Sat Mar 08, 2008 11:35 am
Posts: 3898
Location: In the server room
Crash, you need to comb through your DHCP3 conf file to see what's up. DHCP isn't working on that interface and APIPA is taking over, hence the 169.254.x.x IP addy.

I remember getting DHCP3 setup, but I had release time issues. I didn't know whether the numbers meant days, weeks, minutes, seconds.... never did get an answer to that one.


Top
  Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2009 9:22 pm 
Million Club - 5 Plus*
Million Club - 5 Plus*
User avatar

Joined: Sun Sep 12, 2004 6:37 pm
Posts: 4745
Location: In the monkey's litterbox
Use dnsmasq for DNS and DHCP on the subnet. It's MUCH simpler.

I followed this on my Arch machine (with the additional NAT steps), and it's been running for me for over a year and a half:
http://wiki.archlinux.org/index.php/Sim ... wall_HOWTO
dnsmasq part of Arch wiki (on different page)


Top
  Profile  
 
 Post subject:
PostPosted: Sun Feb 22, 2009 7:15 am 
SON OF A GUN
SON OF A GUN
User avatar

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
I will try those suggestions out when I get home (out visiting the fiance right now). I was just hoping I may have missed a step with the DHCP. It seemed pretty simple to set up.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.