diff --git a/states/openvpn_client/vpn.conf.j2 b/states/openvpn_client/vpn.conf.j2 index 56b3864..4e43277 100644 --- a/states/openvpn_client/vpn.conf.j2 +++ b/states/openvpn_client/vpn.conf.j2 @@ -26,4 +26,12 @@ persist-tun compress lzo fast-io +{% for k,v in salt['network.interfaces']().items() -%} +{%- if k.startswith('en') or k.startswith('eth') %} +{% for net in salt['network.subnets'](k) -%} +pull-filter ignore "route {{ net.split("/")[0] }}" +{%- endfor %} +{%- endif %} +{%- endfor %} + auth-user-pass private/pass \ No newline at end of file