Proxmox Hardware hinzufügen und ändern Aufgabe: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→==) |
|||
| Zeile 27: | Zeile 27: | ||
*echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf | *echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf | ||
*sysctl -p | *sysctl -p | ||
| + | * '''vim ''/etc/nftables.conf'' ''' | ||
| + | <pre> | ||
| + | #!/usr/sbin/nft -f | ||
| + | flush ruleset | ||
| + | |||
| + | table inet nat { | ||
| + | chain postrouting { | ||
| + | type nat hook postrouting priority 100; policy accept; | ||
| + | oif "name_des_wan_interfaces" masquerade | ||
| + | } | ||
| + | } | ||
| + | </pre> | ||
Version vom 7. Mai 2025, 14:16 Uhr
Maschine erstellen
- Name:fw
- Aus dem debian-template (full-clone)
- Ort ist pmx2
- Speicherort
- fs2-prod
VM Konfiguration
| Name | fw.lab.int |
|---|---|
| IP | 10.0.10.99/24 |
| Gateway | 10.0.10.1 |
| Nameserver | 8.8.8.8 |
| Zu installierende Pakete | isc-dhcp-server |
Firewall
- echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf
- sysctl -p
- vim /etc/nftables.conf
#!/usr/sbin/nft -f
flush ruleset
table inet nat {
chain postrouting {
type nat hook postrouting priority 100; policy accept;
oif "name_des_wan_interfaces" masquerade
}
}