Hello!
I've been stuck trying to configure wireless setup with my home lab by this article:
https://pve.proxmox.com/pve-docs/ch..._nat_with_span_class_monospaced_iptables_span
main network: 192.168.1.0/24
gw (wifi-router): 192.168.1.1
host
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug wl0
iface wl0 inet dhcp
wpa-ssid mySSID
wpa-psk mypasswd
auto vmbr0
iface vmbr0 inet static
address 192.168.2.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.2.0/24' -o wl0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.2.0/24' -o wl0 -j MASQUERADE
lxt
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.12/24
gateway 192.168.2.1
What I try to achieve:
1) both host and VMs/LXTs are accessible from the Internet via Port Forwarding at the router;
2) both host and VMs/LXTs are able to connect to the Internet and DNS resolving
I've been stuck trying to configure wireless setup with my home lab by this article:
https://pve.proxmox.com/pve-docs/ch..._nat_with_span_class_monospaced_iptables_span
main network: 192.168.1.0/24
gw (wifi-router): 192.168.1.1
host
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug wl0
iface wl0 inet dhcp
wpa-ssid mySSID
wpa-psk mypasswd
auto vmbr0
iface vmbr0 inet static
address 192.168.2.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.2.0/24' -o wl0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.2.0/24' -o wl0 -j MASQUERADE
lxt
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.12/24
gateway 192.168.2.1
What I try to achieve:
1) both host and VMs/LXTs are accessible from the Internet via Port Forwarding at the router;
2) both host and VMs/LXTs are able to connect to the Internet and DNS resolving