Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
public:ssh-usage [2018-07-18 09:53] – [Create SOCKS proxy tunnel] Reinoud Bokhorst | public:ssh-usage [2018-07-18 11:45] – [Create SOCKS proxy tunnel] Reinoud Bokhorst | ||
---|---|---|---|
Line 206: | Line 206: | ||
===== Simple VPN using dynamic port forwarding ===== | ===== Simple VPN using dynamic port forwarding ===== | ||
- | Instead of forwarding a single port you can also use dynamic port forwarding. This will turn your SSH client into a local [[https:// | + | Instead of forwarding a single port you can also use dynamic port forwarding. This will turn your SSH client into a local [[https:// |
- | The most useful application is to use a SOCKS proxy to access LOFAR web services that are behind the firewall, when you are not connected to the LAN. Two steps are needed: | + | The most useful application is to use a SOCKS proxy to access LOFAR web services that are behind the firewall |
- Open a SOCKS proxy tunnel to the LOFAR portal | - Open a SOCKS proxy tunnel to the LOFAR portal | ||
- Configure your browser (or OS) to use the proxy | - Configure your browser (or OS) to use the proxy | ||
Below a description on how to do that. | Below a description on how to do that. | ||
- | ==== Create SOCKS proxy tunnel | + | ==== Create SOCKS proxy ==== |
__With SSH__ | __With SSH__ | ||
- | The SOCKS tunnel | + | The SOCKS proxy is created by enabling the dynamic port forwarding feature when connecting to the LOFAR portal: |
< | < | ||
Line 225: | Line 225: | ||
Port 1080 is the default SOCKS port but you can also choose another non-privileged one (e.g. 9999). Some client programs however may expect that port 1080 is used. | Port 1080 is the default SOCKS port but you can also choose another non-privileged one (e.g. 9999). Some client programs however may expect that port 1080 is used. | ||
- | Alternatively | + | Additionally |
- | __With | + | __With |
Create a new session in the Putty configuration dialog to portal.lofar.eu on port 22 as you would normally do (e.g. adding your ssh key for authentication). | Create a new session in the Putty configuration dialog to portal.lofar.eu on port 22 as you would normally do (e.g. adding your ssh key for authentication). | ||
- | Then go to Connections-> | + | Then go to Connections-> |
{{: | {{: | ||
Line 248: | Line 248: | ||
- Go to Preferences | - Go to Preferences | ||
- Look for an item called ' | - Look for an item called ' | ||
- | - Click on Settings and fill in the details as below: | + | - Click on Settings, choose " |
- Now try to access an internal web service, you should be able to use the internal domain name of the service (xxx.control.lofar). | - Now try to access an internal web service, you should be able to use the internal domain name of the service (xxx.control.lofar). | ||