L limer Member Apr 25, 2022 19 0 6 Ruda Slaska / Poland limer.org Feb 7, 2024 #21 ping 1.1.1.1 from inside VM is replying ?
B bazzapak New Member Feb 5, 2024 21 0 1 Feb 7, 2024 #22 yes Attachments 1707315983620.png 21.7 KB · Views: 15
B bazzapak New Member Feb 5, 2024 21 0 1 Feb 7, 2024 #23 yes, if I ping 1.1.1.1 inside VM, it works, but it doesn't if i ping www.google.com
L limer Member Apr 25, 2022 19 0 6 Ruda Slaska / Poland limer.org Feb 7, 2024 #24 nano /etc/systemd/resolved.conf.d/dns_servers.conf Bash: [Resolve] DNS=1.1.1.1 Domains=local systemctl restart systemd-resolved.service and try ping google.com Last edited: Feb 7, 2024
nano /etc/systemd/resolved.conf.d/dns_servers.conf Bash: [Resolve] DNS=1.1.1.1 Domains=local systemctl restart systemd-resolved.service and try ping google.com
L limer Member Apr 25, 2022 19 0 6 Ruda Slaska / Poland limer.org Feb 7, 2024 #26 bazzapak said: is this inside VM? Click to expand... yes
L limer Member Apr 25, 2022 19 0 6 Ruda Slaska / Poland limer.org Feb 7, 2024 #27 please `cat /etc/systemd/resolved.conf.d/dns_servers.conf`
B bazzapak New Member Feb 5, 2024 21 0 1 Feb 7, 2024 #28 cause doens't exist /etc/systemd/resolved.conf.d as directory. i only have /etc/systemd/resolved.conf directly
cause doens't exist /etc/systemd/resolved.conf.d as directory. i only have /etc/systemd/resolved.conf directly
L limer Member Apr 25, 2022 19 0 6 Ruda Slaska / Poland limer.org Feb 7, 2024 #29 Bash: mkdir /etc/systemd/resolved.conf.d nano /etc/systemd/resolved.conf.d/dns_servers.conf
B bazzapak New Member Feb 5, 2024 21 0 1 Feb 7, 2024 #31 if i want to connect to this vm in ssh, what should i do?
L limer Member Apr 25, 2022 19 0 6 Ruda Slaska / Poland limer.org Feb 7, 2024 #32 try: iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2222 --jump DNAT --to-destination 192.168.1.2:22
try: iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 2222 --jump DNAT --to-destination 192.168.1.2:22
B bazzapak New Member Feb 5, 2024 21 0 1 Feb 7, 2024 #33 Do I have to do this through iptables? because I don’t like having to give my public ip address to other people to get them inside these VMs.
Do I have to do this through iptables? because I don’t like having to give my public ip address to other people to get them inside these VMs.
L limer Member Apr 25, 2022 19 0 6 Ruda Slaska / Poland limer.org Feb 7, 2024 #34 they must have address - where this VM is. Something like zerotier VPN gave this functionality.
L limer Member Apr 25, 2022 19 0 6 Ruda Slaska / Poland limer.org Feb 7, 2024 #35 Even if you set up a VPN on someone's computer, you will hide the IP behind the domain. It's easy to see. I've never had to hide my public IP. That's why there's a firewall to limit access.
Even if you set up a VPN on someone's computer, you will hide the IP behind the domain. It's easy to see. I've never had to hide my public IP. That's why there's a firewall to limit access.