ferm/services-eva/45-dn42

11 lines
546 B
Plaintext
Raw Permalink Normal View History

2015-11-14 21:49:44 +00:00
@def $dn42_ip4 = @resolve(dn42, A);
@def $dn42_ip6 = @resolve(ipv6.dn42.eva.higgsboson.tk, AAAA);
domain (ip ip6) table filter chain FORWARD proto udp dport 6001:6020 daddr @ipfilter(($dn42_ip4 $dn42_ip6)) ACCEPT;
domain (ip ip6) table nat chain PREROUTING interface $internet proto udp dport 6001:6020 DNAT to @ipfilter(($dn42_ip4 $dn42_ip6));
&def_service(evenet, dn42, udp, 21);
&forward_to_service(evenet, udp, 21);
&forward_to_service(evenet, udp, 123);
&def_service(evenet-tcp, dn42, tcp, 443);
&forward_to_service(evenet-tcp, tcp, 443);