Default ipv6 firewall rules and security

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
Roaneno
DD-WRT Novice


Joined: 11 Jan 2017
Posts: 2

PostPosted: Wed Jan 11, 2017 23:23    Post subject: Default ipv6 firewall rules and security Reply with quote
When reading through the ipv6 tutorial wiki https://www.dd-wrt.com/wiki/index.php/IPv6, it mentions that unless the router (or every client) has a firewall to handle ipv6 packets your clients would be directly exposed to the internet. My question is, with a recent dd-wrt image, do I have to do any extra configuration in order to be secure? I would expect that when enabling ipv6 through the GUI, secure default rules are put in place. If there is any extra configuration, where would be a good place to learn? Thanks
Sponsor
James2k
DD-WRT Guru


Joined: 23 Oct 2011
Posts: 549

PostPosted: Thu Jan 12, 2017 6:47    Post subject: Reply with quote
Unfortunately, a lot of that info is out of date. IPv6 was not fully implemented back when that info was written. Particularly the mentioning of build 14929.

You can find the default v6 firewall rules that are applied here:

http://svn.dd-wrt.com/browser/src/router/services/networking/firewall.c#L2642

Add ?rev=##### (replace with a valid SVN commit to show the exact version in your build)

These rules will be automatically used depending on what you select for your IPv6 setup, note the nvram_match conditions (e.g. native vs tunnel). So no, you don't need to do any extra configuration, unless you have specific requirements. Default ip6tables rules were added to the more recent builds, the older builds required you to add your own firewall rules, until IPv6 was properly implemented, but this has been the case for a while now.

If you are concerned you can use nmap to test IPv6 port visibility, or alternatively, a service like the below, to test if any of your IPv6 ports are open to the WAN side.

https://ipv6.chappell-family.com/ipv6tcptest/

By default, DD-WRT will not expose any incoming IPv6 ports to any services behind your router providing the firewall is active, you have to write your own ip6tables rules with the FORWARD chain to essentially open ports.

Example rule (HTTP web server running on a specific v6 host):
Code:
ip6tables -I FORWARD -p tcp -d 1111:222:3333:555:6666:7777:8888:9999 --dport 80 -j ACCEPT

_________________
James

Main router:

Netgear R7000 overclocked to 1.2GHz - DD-WRT v3.0-r35965M kongac

IPv6 6in4 (HE.net), OpenVPN (with PBR and split tunnelling), Entware, dnsmasq with ipset

Easy ipset support for the R7000

VPN speed: Download: 77.96 Mbps Upload: 5.00 Mbps (AES-128-CBC HMAC-SHA1)

Yes you can get 50 Mbps+ with OpenVPN on a R7000 if you configure it properly!

Previous routers:

ASUS RT-N66U - The Dark Knight
WNR2000v3 - Bought on the cheap for someone else, neutered crap
WNR3500Lv1 - First venture into the DD-WRT world
Roaneno
DD-WRT Novice


Joined: 11 Jan 2017
Posts: 2

PostPosted: Thu Jan 12, 2017 20:50    Post subject: Reply with quote
Thanks for the information! Everything is working as expected
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum