define PUBLIC_ACE_ZFDL360E_IPV4 = 37.220.137.108
define PUBLIC_ACE_ZFDL380E_IPV4 = 37.220.137.109
define PUBLIC_TELEKOM_EFG_IPV4 = 188.6.255.10
-define PUBLIC_TELEKOM_MX_IPV4 = 194.149.40.147
-define PUBLIC_TELEKOM_NS_IPV4 = 194.149.40.148
-define PUBLIC_TELEKOM_VPN_IPV4 = 194.149.40.149
-define PUBLIC_TELEKOM_WS_IPV4 = 194.149.40.150
-define PUBLIC_TELEKOM_MINECRAFT_IPV4 = 194.149.40.151
-define PUBLIC_TELEKOM_IPV4_152 = 194.149.40.152
-define PUBLIC_TELEKOM_IPV4_153 = 194.149.40.153
-define PUBLIC_TELEKOM_IPV4_154 = 194.149.40.154
-define PUBLIC_TELEKOM_IPV4_155 = 194.149.40.155
-define PUBLIC_TELEKOM_IPV4_156 = 194.149.40.156
-define PUBLIC_TELEKOM_IPV4_157 = 194.149.40.157
-define PUBLIC_TELEKOM_DL380E_IPV4 = 194.149.40.158
# efg address (perimeter network)
define EFG_PERIMETER_IPV4 = 192.168.173.254
add rule ip efg_nat prerouting \
iifname $EXTERNAL_ACE_IF \
ip daddr $PUBLIC_ACE_VPN_IPV4 udp dport 1194 \
- counter dnat $VPN_INTERNAL_IPV4 comment "Incoming VPN traffic (ACE)"
-
-add rule ip efg_nat prerouting \
- iifname $EXTERNAL_TELEKOM_IF \
- ip daddr $PUBLIC_TELEKOM_VPN_IPV4 udp dport 1194 \
- counter dnat $VPN_INTERNAL_IPV4 comment "Incoming VPN traffic (TELEKOM)"
+ counter dnat $VPN_INTERNAL_IPV4 comment "Incoming VPN traffic"
#add rule ip efg_nat prerouting \
# iifname $EXTERNAL_ACE_IF \
# ip daddr $PUBLIC_ACE_MX_IPV4 tcp dport $MX_PORTS \
# counter dnat $MX_PERIMETER_IPV4 comment "Incoming MX traffic"
-#add rule ip efg_nat prerouting \
-# iifname $EXTERNAL_TELEKOM_IF \
-# ip daddr $PUBLIC_TELEKOM_MX_IPV4 tcp dport $MX_PORTS \
-# counter dnat $MX_PERIMETER_IPV4 comment "Incoming MX traffic"
-
add rule ip efg_nat prerouting \
iifname $EXTERNAL_ACE_IF udp sport 1024-65535 \
ip daddr $PUBLIC_ACE_NS_IPV4 udp dport 53 \
counter dnat $ENS_PERIMETER_IPV4 comment "Incoming DNS requests (udp)"
-add rule ip efg_nat prerouting \
- iifname $EXTERNAL_TELEKOM_IF udp sport 1024-65535 \
- ip daddr $PUBLIC_TELEKOM_NS_IPV4 udp dport 53 \
- counter dnat $ENS_PERIMETER_IPV4 comment "Incoming DNS requests (udp)"
-
add rule ip efg_nat prerouting \
iifname $EXTERNAL_ACE_IF tcp sport 1024-65535 \
ip daddr $PUBLIC_ACE_NS_IPV4 tcp dport 53 \
counter dnat $ENS_PERIMETER_IPV4 comment "Incoming DNS requests (tcp)"
-add rule ip efg_nat prerouting \
- iifname $EXTERNAL_TELEKOM_IF tcp sport 1024-65535 \
- ip daddr $PUBLIC_TELEKOM_NS_IPV4 tcp dport 53 \
- counter dnat $ENS_PERIMETER_IPV4 comment "Incoming DNS requests (tcp)"
-
add rule ip efg_nat prerouting \
iifname $EXTERNAL_ACE_IF tcp sport 1024-65535 \
ip daddr $PUBLIC_ACE_WS_IPV4 tcp dport $WS_PORTS \
counter dnat $WS_PERIMETER_IPV4 comment "Incoming http(s) requests"
-add rule ip efg_nat prerouting \
- iifname $EXTERNAL_TELEKOM_IF tcp sport 1024-65535 \
- ip daddr $PUBLIC_TELEKOM_WS_IPV4 tcp dport $WS_PORTS \
- counter dnat $WS_PERIMETER_IPV4 comment "Incoming http(s) requests"
-
################################
# FILTER input rules
add rule ip efg_filter input \
ip protocol icmp \
counter accept comment "ICMP"
-add rule inet efg_filter input \
+add rule ip6 efg_filter input \
icmpv6 type { destination-unreachable, \
echo-reply, \
echo-request, \
add rule ip efg_filter forward \
ip protocol icmp \
counter accept comment "ICMP"
+add rule ip6 efg_filter forward \
+ icmpv6 type { destination-unreachable, \
+ echo-reply, \
+ echo-request, \
+ mld-listener-done, \
+ mld-listener-query, \
+ mld-listener-report, \
+ nd-redirect, \
+ nd-router-solicit, \
+ nd-router-advert, \
+ nd-neighbor-solicit, \
+ nd-neighbor-advert, \
+ packet-too-big, \
+ parameter-problem, \
+ router-renumbering, \
+ time-exceeded } \
+ counter accept comment "ICMPv6"
add rule ip efg_filter forward \
counter log prefix "FORWARD"
add rule ip efg_filter output \
ip protocol icmp \
counter accept comment "ICMP"
-add rule inet efg_filter output \
+add rule ip6 efg_filter output \
icmpv6 type { destination-unreachable, \
echo-reply, \
echo-request, \
add rule ip efg_nat postrouting \
oifname $EXTERNAL_ACE_IF ip saddr $VPN_INTERNAL_IPV4 \
- counter snat $PUBLIC_ACE_VPN_IPV4 comment "Outgoing VPN traffic (ACE)"
-
-add rule ip efg_nat postrouting \
- oifname $EXTERNAL_TELEKOM_IF ip saddr $VPN_INTERNAL_IPV4 \
- counter snat $PUBLIC_TELEKOM_VPN_IPV4 comment "Outgoing VPN traffic (TELEKOM)"
+ counter snat $PUBLIC_ACE_VPN_IPV4 comment "Outgoing VPN traffic"
add rule ip efg_nat postrouting \
oifname $EXTERNAL_ACE_IF ip saddr $INTERNAL_IPV4_NETS \
- counter snat $PUBLIC_ACE_EFG_IPV4 comment "Outgoing internal traffic (ACE)"
+ counter snat $PUBLIC_ACE_EFG_IPV4 comment "Outgoing internal traffic"
add rule ip efg_nat postrouting \
oifname $EXTERNAL_TELEKOM_IF ip saddr $INTERNAL_IPV4_NETS \
#add rule ip efg_nat postrouting \
# oifname $EXTERNAL_ACE_IF ip saddr $MX_PERIMETER_IPV4 \
-# counter snat $PUBLIC_ACE_MX_IPV4 comment "Outgoing MX traffic (ACE)"
-
-#add rule ip efg_nat postrouting \
-# oifname $EXTERNAL_TELEKOM_IF ip saddr $MX_PERIMETER_IPV4 \
-# counter snat $PUBLIC_TELEKOM_MX_IPV4 comment "Outgoing MX traffic (TELEKOM)"
+# counter snat $PUBLIC_ACE_MX_IPV4 comment "Outgoing MX traffic"
add rule ip efg_nat postrouting \
oifname $EXTERNAL_ACE_IF ip saddr $ENS_PERIMETER_IPV4 \
- counter snat $PUBLIC_ACE_NS_IPV4 comment "Outgoing external DNS traffic (ACE)"
-
-add rule ip efg_nat postrouting \
- oifname $EXTERNAL_TELEKOM_IF ip saddr $ENS_PERIMETER_IPV4 \
- counter snat $PUBLIC_TELEKOM_NS_IPV4 comment "Outgoing external DNS traffic (TELEKOM)"
+ counter snat $PUBLIC_ACE_NS_IPV4 comment "Outgoing external DNS traffic"
add rule ip efg_nat postrouting \
oifname $EXTERNAL_ACE_IF ip saddr $PNS_PERIMETER_IPV4 \
- counter snat $PUBLIC_ACE_EFG_IPV4 comment "Outgoing perimeter DNS traffic (ACE)"
-
-add rule ip efg_nat postrouting \
- oifname $EXTERNAL_TELEKOM_IF ip saddr $PNS_PERIMETER_IPV4 \
- counter snat $PUBLIC_TELEKOM_EFG_IPV4 comment "Outgoing perimeter DNS traffic (TELEKOM)"
+ counter snat $PUBLIC_ACE_EFG_IPV4 comment "Outgoing perimeter DNS traffic"
add rule ip efg_nat postrouting \
oifname $EXTERNAL_ACE_IF ip saddr $WS_PERIMETER_IPV4 \
- counter snat $PUBLIC_ACE_WS_IPV4 comment "Outgoing WS traffic (ACE)"
-
-add rule ip efg_nat postrouting \
- oifname $EXTERNAL_TELEKOM_IF ip saddr $WS_PERIMETER_IPV4 \
- counter snat $PUBLIC_TELEKOM_WS_IPV4 comment "Outgoing WS traffic (TELEKOM)"
+ counter snat $PUBLIC_ACE_WS_IPV4 comment "Outgoing WS traffic"