Redirecting ssh requests from external world to internal server.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi people, 

I want to transfer all ssh requests to my firewall to
another computer in LAN. So I wrote a rule 
iptables -t nat -A PREROUTING -s any/0 -d
my_firewall_ip_address -p tcp --dport 22 -j DNAT
--to-destination 192.168.1.2:20

When I issue ssh elvir@my_firewall_ip_address I log to
firewall.

Similar rule to redirect http requests ti internal
host works fine. 
Is above possible? Does someone implemented this? 
Is only solution for this first log in to firewall and
then to host in internal network?

Regards 

Elvir Kuric

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux