ferm/services-eve/45-dn42

13 lines
612 B
Plaintext
Raw Normal View History

2015-03-29 11:13:01 +00:00
@def $dn42_ip4 = @resolve(dn42, A);
2015-11-14 21:52:52 +00:00
@def $dn42_ip6 = @resolve(ipv6.dn42.eve.higgsboson.tk, AAAA);
domain (ip ip6) table filter chain FORWARD proto udp dport 5001:5020 daddr @ipfilter(($dn42_ip4 $dn42_ip6)) ACCEPT;
2015-03-29 11:13:01 +00:00
domain (ip ip6) table nat chain PREROUTING interface $internet proto udp dport 5001:5020 DNAT to @ipfilter(($dn42_ip4 $dn42_ip6));
2015-09-08 22:31:31 +00:00
# openvpn client server
2015-11-14 21:52:52 +00:00
&def_service(evenet, dn42, udp, 21);
&forward_to_service(evenet, udp, 21);
2015-09-08 22:31:31 +00:00
&forward_to_service(evenet, udp, 123);
2015-11-14 21:52:52 +00:00
&forward_to_service(evenet, udp, openvpn);
&def_service(evenet-tcp, dn42, tcp, 993);
&forward_to_service(evenet-tcp, tcp, 933);