This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Virtual Tunnel Interface | |
# 172.196.17.188 - 172.196.17.191 | |
set interfaces vti vti0 address 172.196.17.190/30 | |
set interfaces vti vti0 description 'Virtual tunnel interface for VPN tunnel' | |
# Phase 2 | |
set vpn ipsec esp-group ESP-Default compression 'disable' | |
set vpn ipsec esp-group ESP-Default lifetime '3600' | |
set vpn ipsec esp-group ESP-Default mode 'tunnel' | |
set vpn ipsec esp-group ESP-Default pfs 'dh-group16' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code to change a request from / to /app1/ | |
reqirep ^([^\ :]*)\ /(.*) \1\ /app1/\2 | |
If urls in the response contain absolute urls it might be required to use this: | |
acl no_redir url_beg /app1/ | |
reqirep ^([^\ :]*)\ /(.*) \1\ /app1/\2 if !no_redir | |
The code makes sure that the method and url-path behind the / stays the same. Which method you need exactly might depend on the application thats running. | |
For readability of the above how change a request from /app1/ to /app1/app1redir/ | |
reqirep ^([^\ :]*)\ /app1/(.*) \1\ /app1/app1redir/\2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
altscreen on | |
hardstatus on | |
hardstatus alwayslastline | |
startup_message off | |
termcapinfo xterm ti@:te@ | |
hardstatus string " %{= kC}%-w%{.rW}%n %t%{-}%+w %=%{..C} %H %{..C} %m/%d " | |
defscrollback 1000 | |
# Bind C-a v to copy buffer to Mac OS X clipboard. | |
bind v eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'" |