tunnel specifik protocol out from NAT’ed hosts

root@chilibeans ~/dksback# ssh -l mike unifix.org -R 13306:127.0.0.1:3306
mike@unifix.org's password:

here chilibeans are behind a nat firewall and does not have a public ip, this make me able to contact chilibeans's mysql server from unifix.org by connecting to 127.0.0.1:13306

unifix# mysql -h 127.0.0.1 --port=13306 -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 73 to server version: 4.0.18

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
Dette indlæg blev udgivet i Knowledge Base, Linux, Old Base. Bogmærk permalinket.

Skriv et svar