* [pve-devel] Unable to connect from Guest VM running on Proxmox to connect to internet via wireguard
@ 2024-10-19 7:35 Christian Moser
2024-10-23 10:04 ` Andreas Steinel via pve-devel
0 siblings, 1 reply; 2+ messages in thread
From: Christian Moser @ 2024-10-19 7:35 UTC (permalink / raw)
To: pve-devel; +Cc: Christian Moser
Hello,
I have setup wireguard on my Proxmox KVM host system and I have verified the connectivity to the remote internet node (10.10.100.9
in my case). This is working fine.
But I fail to setup a network interface on the Guest VM to allow to connect from the Guest VM to this 10.10.100.9 node.
I have spent a lot of time reading through articles and I have tried setting up interfaces, bridges, port-forwaring etc., but no
luck.
Below is the wireguard info from the KVM host (which has address 192.168.32.70)
Any thoughts? any help or pointers?
thanks very much
/cmos
root@cmos04:~# systemctl status wg-quick@wg0.service
? wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0
Loaded: loaded (/lib/systemd/system/wg-quick@.service; enabled; preset: enabled)
Active: active (exited) since Sat 2024-10-19 10:24:41 EEST; 1min 30s ago
Docs: man:wg-quick(8)
man:wg(8)
https://www.wireguard.com/
https://www.wireguard.com/quickstart/
https://git.zx2c4.com/wireguard-tools/about/src/man/wg-quick.8
https://git.zx2c4.com/wireguard-tools/about/src/man/wg.8
Process: 943 ExecStart=/usr/bin/wg-quick up wg0 (code=exited, status=0/SUCCESS)
Main PID: 943 (code=exited, status=0/SUCCESS)
CPU: 92ms
Oct 19 10:24:41 cmos04 wg-quick[991]: [#] resolvconf -a wg0 -m 0 -x
Oct 19 10:24:41 cmos04 wg-quick[943]: [#] ip -4 route add 192.168.100.0/24 dev wg0
Oct 19 10:24:41 cmos04 wg-quick[943]: [#] ip -4 route add 172.27.224.0/24 dev wg0
Oct 19 10:24:41 cmos04 wg-quick[943]: [#] ip -4 route add 172.31.0.0/16 dev wg0
Oct 19 10:24:41 cmos04 wg-quick[943]: [#] ip -4 route add 172.30.0.0/16 dev wg0
Oct 19 10:24:41 cmos04 wg-quick[943]: [#] ip -4 route add 172.20.0.0/16 dev wg0
Oct 19 10:24:41 cmos04 wg-quick[943]: [#] ip -4 route add 172.16.0.0/16 dev wg0
Oct 19 10:24:41 cmos04 wg-quick[943]: [#] ip -4 route add 10.11.0.0/16 dev wg0
Oct 19 10:24:41 cmos04 wg-quick[943]: [#] ip -4 route add 10.10.0.0/16 dev wg0
Oct 19 10:24:41 cmos04 systemd[1]: Finished wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0.
root@cmos04:~# wg show
interface: wg0
public key: 4OWslSpjJXX7tHMHw6IQ/tHG+mjIyd+dfC9xLIfzsG4=
private key: (hidden)
listening port: 59096
peer: X9C7S5N5leYM40lCvKNbQ4URDuK0ZU1+m0HcTvZHPgM=
preshared key: (hidden)
endpoint: 148.51.229.45:51820
allowed ips: 172.30.0.0/16, 172.31.0.0/16, 10.10.0.0/16, 10.11.0.0/16, 172.16.0.0/16, 172.20.0.0/16, 172.27.224.0/24,
192.168.100.0/24
latest handshake: 1 minute, 34 seconds ago
transfer: 1.14 KiB received, 1.62 KiB sent
persistent keepalive: every 25 seconds
root@cmos04:~# telnet 10.10.100.9
Trying 10.10.100.9...
Connected to 10.10.100.9.
Escape character is '^]'.
LOBSTA (XVMS) (HP rx2800 i4 (2.13GHz/24.0MB))
Unauthorized access prohibited.
Username: *EXIT*
Error reading command input
Connection closed by foreign host.
root@cmos04:~#
root@cmos04:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface enp3s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.32.70/24
gateway 192.168.32.1
bridge-ports enp3s0
bridge-stp off
bridge-fd 0
iface wlo1 inet manual
source /etc/network/interfaces.d/*
root@cmos04:~#
_______________________________________________________
Christian Moser
Mobile: +358-40-5022105
Email: cmos@maklee.com
URL: www.maklee.com
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [pve-devel] Unable to connect from Guest VM running on Proxmox to connect to internet via wireguard
2024-10-19 7:35 [pve-devel] Unable to connect from Guest VM running on Proxmox to connect to internet via wireguard Christian Moser
@ 2024-10-23 10:04 ` Andreas Steinel via pve-devel
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Steinel via pve-devel @ 2024-10-23 10:04 UTC (permalink / raw)
To: Proxmox VE development discussion; +Cc: Andreas Steinel, Christian Moser
[-- Attachment #1: Type: message/rfc822, Size: 5191 bytes --]
From: Andreas Steinel <a.steinel@gmail.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Cc: Christian Moser <cmos@maklee.com>
Subject: Re: [pve-devel] Unable to connect from Guest VM running on Proxmox to connect to internet via wireguard
Date: Wed, 23 Oct 2024 12:04:18 +0200
Message-ID: <CACNWVs3uAjop4_9GEi7ZUzd9miip00nMOuHQy6aPNWOh35HU9Q@mail.gmail.com>
Hi Christian,
On Wed, Oct 23, 2024 at 11:39 AM Christian Moser <cmos@maklee.com> wrote:
> Any thoughts? any help or pointers?
This is the development mailing list, there is a user mailing list [1] and
a forum [2] which are both better suited for your question.
[1] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user
[2] https://forum.proxmox.com/
--
With kind regards
Andreas Steinel
M.Sc. Visual Computing
M.Sc. Informatik
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-23 10:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-19 7:35 [pve-devel] Unable to connect from Guest VM running on Proxmox to connect to internet via wireguard Christian Moser
2024-10-23 10:04 ` Andreas Steinel via pve-devel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal