Configure SSH port forwarding on RHEL6 Machine
i have to machines:
station4.example.com (IP) 172.24.0.4
station5.example.com (IP) 172.24.0.5
have configured apache on station4.example.com and im able to access the websie on station5.example.com now wat i did is; i have applied iptables rule on station4.example.com:
[root@station4~]# iptables -A INPUT -s 172.24.0.5 -p tcp --dport 80 -j REJECT
[root@station4~]# iptables -A INPUT -s 172.24.0.5 -p udp --dport 80 -j REJECT
now im not able to access the website from station5.example.com..
i thaught to impliment SSH port forwarding on station5.example.com i have in "/etc/ssh/sshd_conf" edited:
[root@station5~]# vim /etc/ssh/sshd_conf
AllowTcpForwarding yes
[root@station5~]# service sshd restart
[root@station5~]# chkconfig sshd on
ssh -L localport:remotehost:remoteport ssh-server-ip -fN
[root@station5~]# ssh –L 3025:localhost:80 –fN 172.24.0.4
Please Help..!!
|