LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   firewall woes (https://www.linuxquestions.org/questions/linux-networking-3/firewall-woes-223550/)

bluefire 08-28-2004 01:04 PM

firewall woes
 
Hi, when I do ifup eth0, I get the following:

Determining IP information for eth0...External network device eth0 is not ready. Aborting..
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
done.


When I do ifdown eth0, I get the following:

/sbin/ifdown: line 64: kill: (6164) - No such process
RTNETLINK answers: No such device or address
RTNETLINK answers: No such device or address


Nevertheless, they work sufficiently to bump eth0 in and out of the ifconfig listing. I am using firestarter as a firewall; chkconfig --list gives me (selected):

Code:

firestarter    0:off  1:off  2:on    3:on    4:on    5:on    6:off
iptables        0:off  1:off  2:off  3:off  4:off  5:off  6:off

However, ps -ax grep fire gives me zip (aside from firefox); so, is firestarter operational? Am I protected by a firewall, or not?

Thanks

david_ross 08-28-2004 01:25 PM

Firestarter is only a frontend for iptables. To see your rules run:
iptables -nL

You may want to look at the script and insert a few echo statements so that you can see where it is going wrong.

bluefire 08-28-2004 03:22 PM

I don't like the raw iptables - scary! I installed shorewall instead of firestarter, and set it up as follows:

interfaces:

loc eth0 detect dhcp

(eth0 in loc zone)


policy:

loc net ACCEPT
dmz net ACCEPT
net all DROP info
#
# THE FOLLOWING POLICY MUST BE LAST
#
all all REJECT info


(loc --> net should work)


However, when I start it I can't browse anywhere on the web.

Here's part of the shorewall check output; it concerns me that "net" is empty...is this the culprit? Thanks

Code:

Shorewall has detected the following iptables/netfilter capabilities:
  NAT: Available
  Packet Mangling: Available
  Multi-port Match: Available
  Connection Tracking Match: Available
Verifying Configuration...
Loading Modules...
Determining Zones...
  Zones: net loc dmz
Validating interfaces file...
Validating hosts file...
Determining Hosts in Zones...
  Warning: Zone net is empty
  Local Zone: eth0:0.0.0.0/0
  Warning: Zone dmz is empty
Validating policy file...
  Policy for loc to net is ACCEPT using chain loc2net
  Policy for dmz to net is ACCEPT using chain dmz2net
  Policy for net to loc is DROP using chain net2all
  Policy for net to dmz is DROP using chain net2all
  Policy for net to fw is DROP using chain net2all
  Policy for loc to dmz is REJECT using chain all2all
  Policy for loc to fw is REJECT using chain all2all
  Policy for dmz to loc is REJECT using chain all2all
  Policy for dmz to fw is REJECT using chain all2all
  Policy for fw to net is REJECT using chain all2all
  Policy for fw to loc is REJECT using chain all2all
  Policy for fw to dmz is REJECT using chain all2all



All times are GMT -5. The time now is 03:55 AM.