I want to make a simple redirect of my notebook port to a VM port (in my notebook also)..
iptables -I INPUT -p tcp --dport 2424 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 2424 -j DNAT --to-destination 192.168.10.10:8000
In another machine in the network..
$ nmap 192.168.101.199
Starting Nmap 6.40 ( http://nmap.org ) at 2015-07-08 18:52 BRT
Nmap scan report for 192.168.101.199
Host is up (0.0027s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
8000/tcp open http-alt
Nmap done: 1 IP address (1 host up) scanned in 0.25 seconds
The telnet on notebook port 2424 doesn't works too.
Is there something wrong in my code?