I am using gogoc tunnel broker on my ubuntu pc for enabling ipv6. I want to use my Ubuntu pc as ipv6 router. I have enabled router mode in the gogoc client. I am using radvd for advertizing the router on the local LAN. tun is the tunnel (WAN) interface. br0 is the LAN interface (wan0 and eth0 have been bridged to make the laptop a wireless accesspoint). What firewall rules can I use to enable packet forwarding and to have a fairly good security for the router and the LAN devises.
|
|
|||
|
|
|
I can't say that I'm familiar with that specific tunnel broker, I'm assuming that you received a /64 for your hosts. There are some tunnel brokers which provide a /48 in which case you'll need to adjust the rules a bit. These are in iptables-save format:
You'll need to replace "<your address block>::/64" with whatever address range you're assigned. This firewall will prevent all outside connections to your local IPv6 addresses while allowing them access to everything. If you need to provide services on your internal IPv6 hosts you'll need to add allow rules in the FORWARD chain at the end (but before the COMMIT). |
|||
|
|
For Linux-based routers, I find that To configure
(There are a few other files as well, but for most situations, the defaults are fine.) In your case, you could define two zones, say In summary, using a front end tool like |
|||
|
|