Managed to get the B3 up and running again by using the recovery USB stick and a standard setup found on this forum, however I can only access the internet from PC's on the Wlan by setting INPUT and FORWARD to ACCEPT and therefore need some help setting the firewall up again correctly
What do I do wrong ?
Thanks in advance
eZap
root@b3:/home/soren# ifconfig
br0 Link encap:Ethernet HWaddr 00:0b:6b:e4:ee:0c
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::222:2ff:fe00:22cd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:135475 errors:0 dropped:0 overruns:0 frame:0
TX packets:57268 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15057206 (14.3 MiB) TX bytes:31258733 (29.8 MiB)
eth0 Link encap:Ethernet HWaddr 00:22:02:00:22:cc
inet addr:85.82.25.51 Bcast:85.82.25.55 Mask:255.255.255.248
inet6 addr: fe80::222:2ff:fe00:22cc/64 Scope:Link
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:73724 errors:0 dropped:0 overruns:0 frame:0
TX packets:61387 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32861988 (31.3 MiB) TX bytes:9090628 (8.6 MiB)
Interrupt:11
eth1 Link encap:Ethernet HWaddr 00:22:02:00:22:cd
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:15
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:103 errors:0 dropped:0 overruns:0 frame:0
TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8698 (8.4 KiB) TX bytes:8698 (8.4 KiB)
mon.wlan0 Link encap:UNSPEC HWaddr 00-0B-6B-E4-EE-0C-01-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11218 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1522106 (1.4 MiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:0b:6b:e4:ee:0c
inet6 addr: fe80::20b:6bff:fee4:ee0c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:140361 errors:0 dropped:0 overruns:0 frame:0
TX packets:85409 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18753969 (17.8 MiB) TX bytes:40006509 (38.1 MiB)
root@b3:/home/soren# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
85.82.25.48 0.0.0.0 255.255.255.248 U 0 0 0 eth0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
0.0.0.0 85.82.25.49 0.0.0.0 UG 0 0 0 eth0
root@b3:/home/soren# iptables-save
# Generated by iptables-save v1.4.8 on Tue Oct 18 22:07:08 2011
*nat

:INPUT ACCEPT [194:26025]
:OUTPUT ACCEPT [74:7571]

-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Tue Oct 18 22:07:08 2011
# Generated by iptables-save v1.4.8 on Tue Oct 18 22:07:08 2011
*filter
:INPUT ACCEPT [848:147547]
:FORWARD ACCEPT [2181:104539]
:OUTPUT ACCEPT [498:75181]
-A INPUT -p tcp -m tcp --tcp-flags SYN,ACK SYN,ACK -m state --state NEW -j REJECT --reject-with tcp-reset
-A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j DROP
-A INPUT -i eth1 -j ACCEPT
-A INPUT -i eth0 -p icmp -m icmp --icmp-type 11 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 993 -j ACCEPT
-A INPUT -i wlan0 -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Tue Oct 18 22:07:08 2011
root@b3:/home/soren#