SSH Redirection in Intranet
Dear All i am new to iptables.i have a network starting from (192.168.0.1-192.168.0.10).Now i want to redirect ssh requests from all local machines to 192.168.0.6, to machine 192.168.0.7.ie
when i execute command (ssh 192.168.0.6) will lead me to 192.168.0.7.pls give me a reply |
On 192.168.0.6 you need these rules
Code:
iptables -t nat -I PREROUTING -p tcp --dport 22 -d 192.168.0.6 -j DNAT --to-destination 192.168.0.7 |
Quote:
|
All times are GMT -5. The time now is 12:13 PM. |