summaryrefslogtreecommitdiff
path: root/roles/install_wireguard_vpn/templates/up.sh.j2
blob: c57d16f9b4186a44fc9c3bb2c0e34f92fbeb6035 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

ip -6 rule add iif wgmyk table ffmyk priority 10
ip -6 rule add from {{ wireguard_vpn_client_range }} table ffmyk priority 10

ip -6 rule add from all iif wgmyk type unreachable priority 200

ip -6 route add {{ wireguard_vpn_client_range }} table ffmyk dev wgmyk
systemctl restart named.service