LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2014, 03:46 PM   #1
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 882

Rep: Reputation: 45
apt-get dist-upgrade borked nat


Ladies & Gents,

It seams that apt-get dist-upgrade broked my system. I had a working external host that provided Internet, NAT, DHCP, cache-DNS, and Firewall to my internal network. The system was running Debian Squeeze. Now that Wheezy has been stable for a while I dicided to dist-upgrad the system to Wheezy. All went fine through the upgrade, it even rebooted without issue. But now NAT is not working.

I have enabled nat in /etc/sysctrl.conf net.ipv4.ip_forward=1

I have checked my firewall settings and they all seam to be fine, arno-iptables-firewall scripts.

I have checked my nic setting, they were not changed by the upgrade.

I have looked at every thing I can think of but all with no joy.

My internal network is working fine. Local name are resolving and I can ssh into the other hosts. But www.google.com will not resolve and trying to ping a random ip results in host not reachable. These conditions/results apply to the server as well as all the hosts hooked to the network it controls.

What am I missing?

And yes I have rebooted the machine on both kernels that are installed.

I think maybe the routing table is not being set up correctly. I don't have access to the machine at the moment to be able to post the table. But going on memory it seams to be a couple short on entries. The host has 2 active nic's.

Thanks.
 
Old 04-11-2014, 05:15 PM   #2
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 882

Original Poster
Rep: Reputation: 45
The routing table

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         external.host   0.0.0.0         UG    0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
192.168.7.0     *               255.255.255.224 U     0      0        0 eth1
The gateway should be on eth0 not on eth1.

Last edited by rbees; 04-11-2014 at 05:21 PM.
 
Old 04-11-2014, 05:32 PM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,195

Rep: Reputation: 243Reputation: 243Reputation: 243
A cheap consumer grade router will do nearly everything you are trying to do - including NAT, DHCP, DNS (not cached) and a basic firewall.
 
Old 04-11-2014, 05:48 PM   #4
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 882

Original Poster
Rep: Reputation: 45
Thanks but no thanks. I have several of them already and I have no real confidence in the security they provide. Besides this host does other things that a plastic box router will not do simply because it has neither the processing power or an os that can be hacked to do what I want.
 
  


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
apt-get dist-upgrade nixonfamilyusa Linux - Software 7 07-14-2006 07:01 PM
apt-get dist-upgrade ErrorBound Ubuntu 4 05-16-2006 12:40 PM
apt-get dist upgrade Lincthra Ubuntu 2 05-25-2005 02:57 AM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 09:19 PM
apt-get dist-upgrade HULLU Debian 1 03-26-2004 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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