Пробую пробросить порт внутрь KVM но соединение не работает, что можно сделать
iptables -t nat -A PREROUTING -p tcp --dport 2222 -i enp35s0 -j DNAT --to-destination 192.168.122.52:22
192.168.122.52 это внутренний адрес виртуалки
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp35s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether a8:a1:59:3f:aa:b9 brd ff:ff:ff:ff:ff:ff
inet 11.111.9.225/31 brd 255.255.255.255 scope global enp35s0
valid_lft forever preferred_lft forever
3: enp36s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether a8:a1:59:3f:b3:a5 brd ff:ff:ff:ff:ff:ff
4: enp3s0f0u14u3c2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 16:1f:ec:44:f9:37 brd ff:ff:ff:ff:ff:ff
5: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 52:54:00:23:1d:00 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:23:1d:00 brd ff:ff:ff:ff:ff:ff
7: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master virbr0 state UNKNOWN group default qlen 1000
link/ether fe:54:00:e2:ea:19 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc54:ff:fee2:ea19/64 scope link
valid_lft forever preferred_lft forever