azzamite
February 25th, 2009, 12:40 AM
Hi everyone
I'm messing with shorewall, I want to block all trafic from/to my virtual hosts, but I can't, so I was wondering if you could help me.
The virtual host is... you guessed, windows!, the virtual network connection is NATed, so I have vmnet1 and vmnet8.
Both vmnets are in the zone vir, from the wich all packages must be dropped (for now).
So far, the virtual host can ping wlan0, vmnet1 and google while it shouldn't. The only one it can't ping is vmnet8 (same subnet as the host). I can ping vmnet8 from the host while shorewall isn't running.
So far this is my comfiguration
zones
fw firewall
net ipv4
#dmz ipv4
vir ipv4
interfaces
net wlan0 detect dhcp,routefilter,tcpflags
net eth0 detect dhcp,routefilter,tcpflags
vir vmnet8 detect dhcp
vir vmnet1 detect dhcp
policy
net all DROP
#dmz all REJECT
vir all DROP
fw all ACCEPT #ACCEPT BY DEFAULT
all all REJECT
I'm trying this (http://wiki.debian.org/HowTo/shorewall) tutorial
And some more output
shorewall check
Checking...
Initializing...
Determining Zones...
IPv4 Zones: net vir
Firewall Zone: fw
Validating interfaces file...
Validating hosts file...
Pre-processing Actions...
Pre-processing /usr/share/shorewall/action.Drop...
Pre-processing /usr/share/shorewall/action.Reject...
Validating Policy file...
Determining Hosts in Zones...
net Zone: wlan0:0.0.0.0/0 eth0:0.0.0.0/0
vir Zone: vmnet8:0.0.0.0/0 vmnet1:0.0.0.0/0
Deleting user chains...
Checking /etc/shorewall/routestopped ...
Creating Interface Chains...
Checking Common Rules
Adding rules for DHCP
Checking TCP Flags checking...
Checking Kernel Route Filtering...
Checking Martian Logging...
Checking /etc/shorewall/rules...
Checking Actions...
Checking /usr/share/shorewall/action.Drop for Chain Drop...
Checking /usr/share/shorewall/action.Reject for Chain Reject...
Checking /etc/shorewall/policy...
Checking Traffic Control Rules...
Checking Rule Activation...
Compiling IP Forwarding...
Shorewall configuration verified
I'm messing with shorewall, I want to block all trafic from/to my virtual hosts, but I can't, so I was wondering if you could help me.
The virtual host is... you guessed, windows!, the virtual network connection is NATed, so I have vmnet1 and vmnet8.
Both vmnets are in the zone vir, from the wich all packages must be dropped (for now).
So far, the virtual host can ping wlan0, vmnet1 and google while it shouldn't. The only one it can't ping is vmnet8 (same subnet as the host). I can ping vmnet8 from the host while shorewall isn't running.
So far this is my comfiguration
zones
fw firewall
net ipv4
#dmz ipv4
vir ipv4
interfaces
net wlan0 detect dhcp,routefilter,tcpflags
net eth0 detect dhcp,routefilter,tcpflags
vir vmnet8 detect dhcp
vir vmnet1 detect dhcp
policy
net all DROP
#dmz all REJECT
vir all DROP
fw all ACCEPT #ACCEPT BY DEFAULT
all all REJECT
I'm trying this (http://wiki.debian.org/HowTo/shorewall) tutorial
And some more output
shorewall check
Checking...
Initializing...
Determining Zones...
IPv4 Zones: net vir
Firewall Zone: fw
Validating interfaces file...
Validating hosts file...
Pre-processing Actions...
Pre-processing /usr/share/shorewall/action.Drop...
Pre-processing /usr/share/shorewall/action.Reject...
Validating Policy file...
Determining Hosts in Zones...
net Zone: wlan0:0.0.0.0/0 eth0:0.0.0.0/0
vir Zone: vmnet8:0.0.0.0/0 vmnet1:0.0.0.0/0
Deleting user chains...
Checking /etc/shorewall/routestopped ...
Creating Interface Chains...
Checking Common Rules
Adding rules for DHCP
Checking TCP Flags checking...
Checking Kernel Route Filtering...
Checking Martian Logging...
Checking /etc/shorewall/rules...
Checking Actions...
Checking /usr/share/shorewall/action.Drop for Chain Drop...
Checking /usr/share/shorewall/action.Reject for Chain Reject...
Checking /etc/shorewall/policy...
Checking Traffic Control Rules...
Checking Rule Activation...
Compiling IP Forwarding...
Shorewall configuration verified