LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-09-2005, 09:44 AM   #1
matrixcubed
LQ Newbie
 
Registered: May 2004
Location: Gatineau, QC
Distribution: Ubuntu 6.10
Posts: 25

Rep: Reputation: 15
iptables ... weird behavior, please help!


Hi all,

I am having some serious issues with my firewall ruleset.

Some background ... I baselined the system and reinstalled Redhat 9.0 on my server last week. Everything has been running fine, however things went wrong yesterday when I tried upping the security on the firewall.

I downloaded apf and installed it, ran thru the configuration, and left it in dev mode "just in case". This of course dropped my connection immediately! But five minutes later I was able to remote in. A copy of the config file is here.

I've since removed the program, ensured it wasn't running (via service and chkconfig), and went so far as to remove the executable then reboot.

This may have nothing to do with the problem, but it is the only firewall-related action I've taken on the server.

The current problem is that, after rebooting and issuing my firewall-config script, NAT works for a few minutes, then drops. I can access the server (e.g. ssh) from the LAN, and I can access the internet from the server, but the server is not NATing.

The firewall rules I am using, I have been using for about 2 years; suffice to say they are not the problem. However, I'll note that the following two lines do exist, in order to enable NAT...

Code:
# Masquerade local subnet
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
If I should post the full firewall ruleset, please let me know and I'll make them available.

If someone can recommend where to check or how to override what is going on, please let me know! Otherwise I am going the way of the reinstall, as I've already spent as much time troubleshooting this problem as it would have taken to baseline the system and reconfigure it.

Last edited by matrixcubed; 05-09-2005 at 09:48 AM.
 
  


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
Weird behavior Bassy Linux - Software 2 10-20-2005 01:32 PM
weird mount behavior sohmc Linux - Hardware 0 06-07-2005 07:06 AM
Weird Behavior in KDE 3.3 haldara Linux - Newbie 3 09-24-2004 10:59 AM
Weird Knode behavior PapaNoHair Mandriva 0 11-09-2003 06:39 PM
Weird Lilo behavior Tayl Slackware 2 09-21-2003 02:09 AM

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

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