For IPV6 the command ip6tables is available.
ip6tables -L gives me the following output:
- Code: Select all
nas> ip6tables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all anywhere anywhere state RELATED,ESTABLISHED
modprobe: chdir(2.6.32.12): No such file or directory
modprobe: chdir(2.6.32.12): No such file or directory
ACCEPT tcp anywhere anywhere multiport dports 6881,http,5000
ACCEPT udp anywhere anywhere udp dpt:bootps
ACCEPT icmpv6 anywhere anywhere
DROP all anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
It should not be so difficult to add a IPV6 firewall tab including the IPv6tunnel interface, LAN interface and PPPoE as a wrapper around ip6tables.
What I can see is Then the IPv6 firewall is working but only for the fixed LAN connections and PPPoE, not for IPV6-tunnels.
The forllowing command shows thant only eth0 is configured.
- Code: Select all
nas>
ip6tables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
modprobe: chdir(2.6.32.12): No such file or directory
modprobe: chdir(2.6.32.12): No such file or directory
-A INPUT -i eth0 -p tcp -m multiport --dports 6881,80,5000 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i eth0 -p icmpv6 -j ACCEPT
-A INPUT -i eth0 -j DROP
using ifconfig you can get out the active interfaces including the ipv6 tunnel I configures (IP numbers are changed).
- Code: Select all
nas> ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:32:04:9A:DD
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd8b:3362:769e:84e5::2:0/64 Scope:Global
inet6 addr: fe80::211:32ff:fe04:9add/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5933247 errors:0 dropped:0 overruns:0 frame:0
TX packets:12898284 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:855927752 (816.2 MiB) TX bytes:4236525358 (3.9 GiB)
Interrupt:11
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:52357 errors:0 dropped:0 overruns:0 frame:0
TX packets:52357 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:181379142 (172.9 MiB) TX bytes:181379142 (172.9 MiB)
tun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: 2001:5c0:1234:::1234/128 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 Metric:1
RX packets:58 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:6693 (6.5 KiB) TX bytes:5980 (5.8 KiB)