Updated efg.pm (networking updates).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Thu, 27 May 2021 13:41:19 +0000 (15:41 +0200)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Thu, 27 May 2021 13:41:19 +0000 (15:41 +0200)
sources/efg.pm/firstboot/01_setupnetworking.sh
sources/efg.pm/postinstall/install/etc/sysctl.d/01_ipforward.conf

index 1cbe00593710c1cc47317c98dbfb79f2cd6445dc..8910aeffd7e2e37d302a7aa18e715f135ac2d95a 100755 (executable)
@@ -66,9 +66,11 @@ nmcli connection add \
     ipv4.addresses "192.168.65.1/24, 188.6.255.10/30" \
     ipv4.gateway "188.6.255.9" \
     ipv4.method "manual" \
+    ipv4.route-metric 100 \
     ipv4.route-table 150 \
     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.method "auto" \
+    ipv6.route-metric 200 \
     save yes
     # magyar telekom -> mt (13 * 10 + 20)
 
@@ -82,9 +84,11 @@ nmcli connection add \
     ipv4.addresses "37.220.137.97/28, 37.220.137.98/28, 37.220.137.99/28, 37.220.137.100/28, 37.220.137.101/28" \
     ipv4.gateway "37.220.137.110" \
     ipv4.method "manual" \
+    ipv4.route-metric 100 \
     ipv6.addresses "2a02:d400:0000:f200:000c:18ff:fe03:8961/64" \
     ipv6.gateway "2a02:d400:0000:f200::1" \
     ipv6.method "manual" \
+    ipv6.route-metric 100 \
     save yes
 
 nmcli connection show
index 05b3f7897011b1afee3d8035012e3b4f6ae66062..5334abcc8e49384222920b0f5d3c4b81d7cbfef7 100644 (file)
@@ -1 +1,2 @@
 net.ipv4.conf.all.forwarding = 1
+net.ipv6.conf.all.forwarding = 1