Netzwerkkonfiguration - Hetzner neuer Server
von heisenberg- SNIPPET_DESC:
- Netzwerkkonfiguration - Hetzner neuer Server
- SNIPPET_CREATION_TIME:
- 19.01.2024 01:46:19
- SNIPPET_PRUNE_TIME:
- Unendlich
- SNIPPET_TEXT:
-
- # ip addr show dev vmbr0
- 3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
- link/ether 92:62:8e:34:79:4e brd ff:ff:ff:ff:ff:ff
- inet 10.20.0.0/31 scope global vmbr0
- valid_lft forever preferred_lft forever
- inet6 2a01:xxx:xxx:yyy::56/127 scope global
- valid_lft forever preferred_lft forever
- inet6 fe80::986a:19ff:fe3c:635d/64 scope link
- valid_lft forever preferred_lft forever
- # ip addr show dev enp0s31f6
- 2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
- link/ether 90:1b:0e:f7:94:f7 brd ff:ff:ff:ff:ff:ff
- inet w.x.y.z/26 scope global enp0s31f6 (w.x.y.z=public ip)
- valid_lft forever preferred_lft forever
- inet6 2a01:xxx:xxx:yyy::25:57/128 scope global
- valid_lft forever preferred_lft forever
- inet6 fe80::921b:eff:fef7:94f7/64 scope link
- valid_lft forever preferred_lft forever
- # ip -6 r | sort
- 2a01:xxx:xxx:yyy::25:57 dev enp0s31f6 proto kernel metric 256 pref medium
- 2a01:xxx:xxx:yyy::56/127 dev vmbr0 proto kernel metric 256 pref medium
- 2a01:xxx:xxx:yyy::/64 via 2a01:xxx:xxx:yyy::57 dev vmbr0 metric 1024 pref medium
- 2a01:xxx:xxx:yyy::80/125 dev vmbr9 proto kernel metric 256 pref medium
- default via fe80::1 dev enp0s31f6 proto kernel metric 1024 onlink pref medium
- fe80::/64 dev enp0s31f6 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr0 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr10 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr1 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr2 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr3 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr4 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr5 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr6 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr7 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr8 proto kernel metric 256 pref medium
- fe80::/64 dev vmbr9 proto kernel metric 256 pref medium
- # brctl show vmbr0
- # bewusst kein physkalisches interface konfiguriert
- bridge name bridge id STP enabled interfaces
- vmbr0 8000.c241045d44b9 no tap100i0
- # Verbindung von externem und internem interface via iptables
- # iptables -t nat -L -v -n
- Chain PREROUTING (policy ACCEPT 39 packets, 2364 bytes)
- pkts bytes target prot opt in out source destination
- 100 4328 DNAT 6 -- enp0s31f6 * 0.0.0.0/0 0.0.0.0/0 multiport dports !6556,22,8006,10042 to:10.20.0.1
- 1 53 DNAT 17 -- enp0s31f6 * 0.0.0.0/0 0.0.0.0/0 to:10.20.0.1
- Chain INPUT (policy ACCEPT 39 packets, 2364 bytes)
- pkts bytes target prot opt in out source destination
- Chain OUTPUT (policy ACCEPT 103 packets, 6230 bytes)
- pkts bytes target prot opt in out source destination
- Chain POSTROUTING (policy ACCEPT 204 packets, 10611 bytes)
- pkts bytes target prot opt in out source destination
- 0 0 MASQUERADE 0 -- * enp0s31f6 10.20.0.0/31 0.0.0.0/0
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN