Unable to set dual interface

df54ds

New Member
Oct 16, 2023
1
0
1
I started configuring my cluster last with Proxmox planning to prepare my Home Assistant server (and others to come) while my new place is being built and for now I'm not able to put my server close to my router. Since the problems with Wlan aint a big deal, I'd like to let it working thru it while still adjusting things instead of relying only in ethernet connection. Furthermore, I can follow some tutorial about command line codes and it's application to setting my network, but don't know much about what I'm doing.
By now I was able to connect my server to my network following this video, resulting in the scenario below:
1697475287248.png
1697476040487.png

After that I edited /etc/network/interfaces adding these lines (as seen here)
Code:
post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE
post-up   iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1

Besides, every time I restart my server it loses it's Wlan connection and I've to start it again with:
Code:
wpa_supplicant -c wpa_supplicant.conf -i wlxxxxxxxxx1 -B -Dnl80211
dhclient wlxxxxxxxxx1

After that if I try to access 192.168.100.98 I'm able to reach the server while connected to both Wlan and Eth and thought that was using Wlan, but after removing my cable I'm unable to reach the server. Am I doing something too stupid or that is a way I can follow to fix it? Which steps I'm missing?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!