LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-09-2007, 12:01 PM   #1
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Rep: Reputation: 15
Problem setting up new firewall


So, I'm setting up a firewall that gets an outside ip address through dhcp and acts as a gateway for an internal network. I had this working on another server, but it started having some problems. I've also had some problems with manually running iptables, so I decided to try shorewall. I got it to mostly work, but there was significant packet loss (>75%). I scrapped it and setup an iptables script. It works for the most part, but it still has some problems. Some connections work at first and then die off, and connecting to the inside ftp server is slow (as well as navigating once inside). Even connecting to an nfs mount from one computer inside the network to another is slow.

The firewall is running Ubuntu 7.07, bind9, dhcpd, and iptables v1.3.6. Here is the iptables script.

#Ignore. Move to the next post.

Let me know if you need any more information.

Last edited by hazmatt20; 07-09-2007 at 10:57 PM.
 
Old 07-09-2007, 10:03 PM   #2
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 15
So, I don't think it's my firewall. I noticed an error that comes up whenever I try to add a second network connection. It doesn't matter if eth0 or eth1 is up first, when I run ifup on the other interface, I get

Code:
RTNETLINK answers: File exists
run-parts: /etc/network/if-up.d/avahi-autoipd exited with return code 2
If both are up, I can't access the internet, but if I run ifdown eth1, the internet works again. I've tried different nics with no difference. I need two since this server is the firewall. Any ideas?
 
  


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
Setting up a Firewall Lucky13 Linux - Newbie 2 12-15-2006 01:06 PM
firewall setting DanielTan Linux - Security 47 11-16-2005 10:09 PM
setting the firewall one_ro SUSE / openSUSE 2 02-17-2005 05:10 PM
Setting up a firewall myguest Linux - Security 5 08-02-2004 12:32 PM
Setting up firewall linuxfond Linux - Newbie 3 02-21-2003 01:52 PM

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

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