mirror of
https://github.com/pivpn/pivpn.git
synced 2025-03-03 15:28:26 +00:00
Fix UFW throwing invalid position error during IPv6 configuration.
UFW reports "ERROR: Invalid position at ‘1’" when attempting to insert an IPv6 rule above an IPv4 rule, which breaks IPv6 functionality on setups running UFW. This is fixed by appending the rule below all others.
This commit is contained in:
parent
cc909fd82e
commit
ddfa4e8d2b
1 changed files with 1 additions and 1 deletions
|
@ -3399,7 +3399,7 @@ confNetwork() {
|
||||||
out on "${IPv4dev}" to any > /dev/null
|
out on "${IPv4dev}" to any > /dev/null
|
||||||
|
|
||||||
if [[ "${pivpnenableipv6}" -eq 1 ]]; then
|
if [[ "${pivpnenableipv6}" -eq 1 ]]; then
|
||||||
${SUDO} ufw route insert 1 \
|
${SUDO} ufw route \
|
||||||
allow in on "${pivpnDEV}" \
|
allow in on "${pivpnDEV}" \
|
||||||
from "${pivpnNETv6}/${subnetClassv6}" \
|
from "${pivpnNETv6}/${subnetClassv6}" \
|
||||||
out on "${IPv6dev}" to any > /dev/null
|
out on "${IPv6dev}" to any > /dev/null
|
||||||
|
|
Loading…
Add table
Reference in a new issue