I am using virtualbox 4.1.16 on a Ubuntu 12.04 x64 vm host and all NAT is working properly, like HOST 2222 -> Client 22
But I have changed my HOST sshd
to listen on port 81 and restarted, so host port 22 is free. and order my guest vm to do a NAT (HOST)22 to (CLIENT)22. while the same vm guest, if I map NAT 1234 to 22, it works again.
I have tried ufw disable
, /etc/init.d/apparmor stop
, nothing helps
Is there anything I need to do to make it happen?
iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 22 -j REDIRECT --to-port 1234