define PUBLIC_STORE_IPV4 = 213.253.216.165
define PUBLIC_VPN_IPV4 = 213.253.216.166
define PUBLIC_WS_IPV4 = 213.253.216.167
-define PUBLIC_IPV4_168 = 213.253.216.168
+define PUBLIC_NETLOCK_IPV4 = 213.253.216.168
define PUBLIC_IPV4_169 = 213.253.216.169
define PUBLIC_IPV4_170 = 213.253.216.170
define PUBLIC_IPV4_171 = 213.253.216.171
# internal name server address (internal network)
define INS_INTERNAL_IPV4 = 10.228.109.104
+# netlock server address (internal network)
+define NETLOCK_INTERNAL_IPV4 = 10.228.32.197
+
# worksheet address (internal network)
define WORKSHEET_SR_IPV4 = 192.168.42.248
ip daddr $PUBLIC_VPN_IPV4 udp dport $VPN_PORT \
counter dnat $VPN_INTERNAL_IPV4 comment "Incoming VPN traffic"
+add rule ip efg-nat prerouting \
+ iifname $EXTERNAL_IF tcp sport 1024-65535 \
+ ip daddr $PUBLIC_STORE_IPV4 tcp dport { http, https } \
+ counter dnat $STORE_INTERNAL_IPV4 comment "Incoming store requests"
+
#add rule ip efg-nat prerouting \
# iifname $EXTERNAL_IF \
# ip daddr $PUBLIC_MX_IPV4 tcp dport $MX_PORTS \
ip daddr $PUBLIC_WS_IPV4 tcp dport { http, https } \
counter dnat $WS_PERIMETER_IPV4 comment "Incoming http(s) requests"
+add rule ip efg-nat prerouting \
+ iifname $EXTERNAL_IF tcp sport 1024-65535 \
+ ip daddr $PUBLIC_NETLOCK_IPV4 tcp dport ssh \
+ counter dnat $NETLOCK_INTERNAL_IPV4 comment "Incoming netlock ssh requests"
+
################################
# FILTER input rules
oifname $PERIMETER_IF ip daddr $VPN_INTERNAL_IPV4 udp dport $VPN_PORT \
counter accept comment "Incoming VPN traffic"
+add rule ip efg-filter forward \
+ iifname $EXTERNAL_IF \
+ oifname $PERIMETER_IF ip daddr $STORE_INTERNAL_IPV4 tcp dport { http, https } \
+ counter accept comment "Incoming store traffic"
+
+add rule ip efg-filter forward \
+ iifname $EXTERNAL_IF \
+ oifname $PERIMETER_IF ip daddr $NETLOCK_INTERNAL_IPV4 tcp dport ssh \
+ counter accept comment "Incoming netlock ssh traffic"
+
add rule ip efg-filter forward \
iifname $EXTERNAL_IF tcp sport 1024-65535 \
oifname $PERIMETER_IF ip daddr $WS_PERIMETER_IPV4 tcp dport { http, https } \
ipv4.dns "192.168.173.174" \
ipv4.dns-search "pm.user.hu" \
ipv4.method "manual" \
- ipv4.routes "10.228.0.0/16 192.168.173.1, 192.168.42.0/24 192.168.173.1, 192.168.43.0/24 192.168.173.1" \
+ ipv4.routes "10.228.0.0/16 192.168.173.1, \
+ 192.168.42.0/24 192.168.173.1, \
+ 192.168.43.0/24 192.168.173.1" \
ipv6.addresses "2001:1aa1:000a:00ad:000c:18ff:fe03:adfe/64" \
ipv6.dns "2001:1aa1:000a:00ad:000c:18ff:fe03:adae" \
ipv6.dns-search "pm.useribm.hu" \
nmcli connection add \
connection.autoconnect yes \
- connection.id invitech \
+ connection.id external \
connection.interface-name $CONNECTION_DEVICE_EX \
connection.type 802-3-ethernet \
- ipv4.addresses "213.253.216.162/28, 213.253.216.163/28, 213.253.216.164/28, 213.253.216.166/28, 213.253.216.167/28" \
+ ipv4.addresses "213.253.216.162/28, 213.253.216.163/28, \
+ 213.253.216.164/28, 213.253.216.165/28, \
+ 213.253.216.166/28, 213.253.216.167/28, \
+ 213.253.216.168/28" \
ipv4.gateway "213.253.216.161" \
ipv4.method "manual" \
ipv4.route-metric 100 \