LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 02:46 PM   #1
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Rep: Reputation: 46
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, 04:15 PM   #2
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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 04:21 PM.
 
Old 04-11-2014, 04:32 PM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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, 04:48 PM   #4
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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



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

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

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