TIPS IPv6 dual stack and extension permit/deny

Randomandy

New Member
Joined
Feb 2, 2014
Messages
8
Reaction score
4
Something I just realized while working with IPv6 dual stack and PIAF:

When employing extension permit/deny rules, the following:
deny = 0.0.0.0/0.0.0.0​
permit = 192.168.15.0/255.255.255.0​
means:
deny all IPv4 address space except for the IPv4 space specified in the permit rule....​
AND ALLOW ALL IPv6 address space.
Similarly,
deny = ::/0​
means:
deny all IPv6 address space except for the address space specified in the permit rule...​
AND ALLOW ALL IPv4 address space.

So, when operating dual-stack (IPv4 + IPv6), for the deny rule to behave as you probably intend (to deny everything), it needs to be set to:
deny = 0.0.0.0/0.0.0.0&::/0​
The & enables adding multiple rules via GUI, so
deny = 0.0.0.0/0.0.0.0&::/0​
permit 192.168.15.0/255.255.255.0​
denies everything except 192.168.15.0/255.255.255.0 in IPv4. No IPv6 addresses allowed.
"&" can also be used in the permit rule if you want to permit both an IPv4 block and and IPv6 block. e.g.
deny = 0.0.0.0/0.0.0.0&::/0​
permit 192.168.15.0/255.255.255.0&2001:dead:beef::/64​
Denies everything except 192.168.15.0/24 in IPv4 space and 2001:dead:beef::/64 in IPv6 space.

Otherwise, I am finding PIAF (20650 i386 Green, Yealink T19P, X-Lite 4.6.1) running smoothly so far with IPv6 and IPv4 endpoints. Just remember that the default PIAF firewall is set to default deny IPv6. So you will need to modify that before any IPv6 will work. And IIRC fail2ban isn't set up to defend (or capable of defending) against IPv6.
 

Members online

No members online now.

Forum statistics

Threads
26,686
Messages
174,406
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top