How to telnet from virtual source IP
Sometimes you need to telnet some destination from desired source IP. It can be done by using follow command:
nc -s IP1 IP2 port
For example you want to check telnet on port 25 the destination 192.168.2.1 and only source IP 172.87.2.1 is alllowed to that direction but your server source IP is different:
nc -s 172.87.2.1 192.168.2.1 25
It is useful in case when you're trying telnet from node1 but on destination server only floating IP (virtual IP) is allowed.
No comments:
Post a Comment