For years I have been running a regular PC with 3 interfaces and Shorewall for my firewall. I had a dedicated DMZ interface and I figured I would replace this box with one of my WRT54G boxes. I wanted to keep a dedicated DMZ that would consist of 2 devices so what I did was peel off port 4 on the WRT and created a vlan2 containing only port 4 and assigned it the DMZ address that my old firewall used. I have a switch plugged in to port 4 and the DMZ devices plugged into that switch.
Now using the stock firewall script on the WRT I can ping all my LAN devices from the DMZ and I can ping the LAN and WAN interfaces on the WRT from the DMZ. I can not ping anything out on the Internet from the DMZ. I can ping the DMZ devices from the LAN and can ping out to the internet from the LAN. I can not get any traffic from the DMZ to the Internet using either the stock firewall script or the Shorewall configuration copied from my old firewall. If I run a "tcpdump -i vlan1" (WAN interface) and try to ping something out on the Internet from the DMZ I can see echo requests but no echo replies.
Setup:
WRT54G v2 + OpenWRT WR RC2 (latest squashfs binary)
DMZ vars:
dmz_enable=1
dmz_hwaddr=00:0C:41:D3:4F:BE
dmz_ifname=vlan2
dmz_ifnames=vlan2
dmz_ipaddr=172.16.214.1
dmz_netmask=255.255.255.0
dmz_proto=static
LAN vars:
lan_domain=
lan_hwaddr=00:0C:41:D3:4F:BC
lan_hwnames=
lan_ifname=br0
lan_ifnames=vlan0 eth1 eth2 eth3
lan_ipaddr=192.168.0.1
lan_lease=86400
lan_netmask=255.255.255.0
lan_proto=static
lan_stp=0
lan_wins=
WAN vars:
wan_hwaddr=00:0C:41:D3:4F:BD
wan_hwname=
wan_ifname=vlan1
wan_ifnames=vlan1
wan_mtu=1500
wan_proto=dhcp
VLAN vars:
vlan0hwname=et0
vlan0ports=1 2 3 5*
vlan1hwname=et0
vlan1ports=0 5
vlan2hwname=et0
vlan2ports=4 5
Any pointers would be greatly appreciated.
Thanks!
