No WAN Connection: pfsense on KVM (Proxmox) root Server by server4you
-
Good Morning Everyone!
As you can read in the subject, i cant get my WAN Connection to work.
This is my Setup:
Root Server from Server4you with Proxmox installed.
Main IP: 85.25.XXX.XXX
Additional IP: 62.75.XXX.XXXMy eth0 Interface on my Hostsystem looks as follows:
iface eth0 inet static
address 85.25.XXX.XXX (Main IP)
netmask 255.255.255.255
gateway 85.25.XXX.XXX (Main IP Gateway from Server4you)
pointopoint 85.25.XXX.XXX (Main IP Gateway from Serveryou)My Bridge on the Hostsystems looks like this:
iface vmbr0 inet static
address 192.168.XXX.XXX (Internal Lan)
netmask 255.255.255.0
pre-up brctl addbr $IFACE
post-up route add -host 62.75.XXX.XXX $IFACE (Additional IP)
post-down brctl delbr $IFACEA Debian Guest configured like this works perfect (I can access Internet and the guest is reachable via the Additional IP as well):
iface eth0 inet static
address 62.75.XXX.XXX (Additional IP)
netmask 255.255.255.255
gateway 85.25.XXX.XXX (Main IP)
pointopoint 85.25.XXX.XXX (Main IP)
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 8.8.4.4Same on Windows Guests: VM can access Internet + reachable via Additonal IP)
Only the pfsense i cant get to work.
How can I configure the pfsense to work like the other guests. I think it has something todo with "pointopoint" beeing not configured in eth0.Hope someone can help and thx in advance, yakuzza
(Orignal Post in German forum: https://forum.pfsense.org/index.php?topic=93982.0)
-
Well, I happen to have configured a similar setup myself, so I hope I can be of assistance.
What I've done is (my server has 2 NICs, one to a switch and one to my modem) made sure both were active in proxmox, and had a bridge to each. I added both to the pfsense VM, and then just installed pfSense normally. Once it finished, I told it to get a DHCP address from my ISP, and I was off and running.
My best guess to you would be to ensure that you've got those bridges, and that both are added to your pfSense virtual machine.
Good luck
-
Thx for your reply. I double checked my settings but everything was fine. I did set up a new debian VM and it still works like it should.
Found a description from Hetzner which i think is exactly what needs to be done, i just dont know how set this up in pfsense:
Guest (KVM)
The network card for the guest machines is tied to "br0". A "pointopoint" route to the Host system is set up in the VM network configuration as the VM cannot communicate directly via the Hetzner Gateway owing to its unknown MAC address. The following is an example for /etc/network/interfaces:
auto eth0
iface eth0 inet static
address DD.EE.FF.163
netmask 255.255.255.255
gateway AA.BB.CC.DD
pointopoint AA.BB.CC.DD
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 213.133.98.98 213.133.99.99
# dns-search example.com -
Ok I'll be honest, I haven't dealt with the interfaces file. If you can send me a screenshot of your proxmox network tab, and the hardware tab of the virtual machine itself, I can work from there.
I don't think you can actually modify the interfaces file from proxmox's GUI, but it can be done from the command line.
-
Have you checked offloading settings? https://forum.pfsense.org/index.php?topic=88467.0
If you are using VirtIO, offloading must be disabled on the hypervisor side for the tap interface.
-
Yes, its turned off - i just checked again.
-
your WAN use ppoe or dhcp?