顯示具有 其他 標籤的文章。 顯示所有文章
顯示具有 其他 標籤的文章。 顯示所有文章

穿過公司防火牆

我習慣用 TeraTerm,只有在要用 ssh 時才會去開 putty
最近才知道 TeraTerm 終於有 ssh version 2 的版本了~ Happy!
UTF-8 TeraTerm Pro with TTSSH2
設定 ssh tunnel 等等我覺得還算蠻方便的

因為有些東西沒有 GUI 設定起來還真麻煩,只好想法子讓這些工具可以透過 ssh 穿過公司防火牆,來連接內部網路的主機了

公司內部網路 192.168.x.x,防火牆僅讓一台主機的 ssh port 可通過,於是乎只能拿這台當作橋樑了
用 ssh 連上這台主機後,設定 ttssh 的 SSH Forwarding:
Local port 11123 to Remote 192.168.x.111 port 23
Local port 11380 to Remote 192.168.x.113 port 80
Local port 14141 to Remote 192.168.x.115 port 14141
Local port 2148 to Remote 192.168.x.115 port 2148
按下 ok 後馬上生效

可以 telnet localhost 11123,就是連上 192.168.x.111
可以 http://localhost:11380,就是連上http://192.168.x.113
打開 VCS Java Console 連 localhost,就是連上 192.168.x.115 的 VCS GUI
打開 VxVM VEA 連 localhost,就是連上192.168.x.115 的 VxVM GUI 啦

參考文章:
Breaking Firewalls with OpenSSH and PuTTY
好孩子不要學:SSH Reverse Tunnel

2010.4.11 補充
每次都忘記,剛剛踹了好一陣子...總算ok
1.設定 ttssh Port Forwarding
ssh: Local port 12322 to Remote 192.168.x.123 port 22
2. ssh localhost:12322 以 ssh 登入 192.168.x.123
3. echo $DISPLAY 確認是否為 localhost:10.0
4. 打開 xmanager 或 xwin32 等 X Server 軟體
5. 執行 xterm 看是否有開啟 X 視窗
ok

[轉載] The Golden Rules of Sun Systems Administration

The Golden Rules of Sun Systems Administration
Peter Baer Galvin

這篇文章真是經典!碰到太多狀況都不出這幾條金科玉律
  • When in Doubt, Reboot
  • Communicate with Users
  • If You Have a Problem, Check the Cables (被線玩過好多次...)
  • All Projects Take Twice the Estimated Time and Money
  • It's Not Done Until It's Tested
  • Never Change Anything on Fridays
  • Use Defaults Whenever Possible
  • Create a Backup
  • Avoid Poor Decisions from Above
  • If You Haven't Seen It Work, It Probably Doesn't
  • If You Are Constantly Fighting Fires, Find the Source
  • If You Don't Understand It, Don't Play with It on the Production Systems
  • If It Can be Accidentally Used, and Can Produce Bad Consequences, Protect It
  • Ockham's Razor is Very Sharp Indeed

[轉載] Unix History

http://www.levenez.com/unix/
碰了 hp-ux, aix 後,哇咧這是啥,完全不認識
雖然 SunOS/BSD 鬧分家了
不過 Solairs 果然還是比較靠近 bsd 血統啊