openconnect server端怎样配置路由表以区分墙内外IP?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openconnect server端怎样配置路由表以区分墙内外IP?相关的知识,希望对你有一定的参考价值。

client端用的是cisco anyconnect
本人菜鸟,回答尽可能详细点

参考技术A 在配置文件里添加内网的路由,比如:
route = 192.168.1.0/255.255.255.0追问

就这一条即可?

ini OpenConnect路由配置,参考http://www.v2ex.com/t/136431,修改精简到200条


# Amazon
route = 8.18.144.0/255.255.254.0
route = 23.20.0.0/255.252.0.0
route = 27.0.0.0/255.255.252.0
route = 46.51.0.0/255.255.0.0
route = 46.137.0.0/255.255.0.0
route = 50.16.0.0/255.252.0.0
route = 50.112.0.0/255.255.0.0
route = 54.0.0.0/255.0.0.0
route = 67.202.0.0/255.255.192.0
route = 72.21.192.0/255.255.224.0
route = 72.44.32.0/255.255.224.0
route = 75.101.128.0/255.255.128.0
route = 79.125.0.0/255.255.128.0
route = 87.238.80.0/255.255.248.0
route = 96.127.0.0/255.255.128.0
route = 103.246.148.0/255.255.252.0
route = 107.20.0.0/255.252.0.0
route = 122.248.192.0/255.255.192.0
route = 174.129.0.0/255.255.0.0
route = 176.32.64.0/255.255.224.0
route = 176.34.0.0/255.255.0.0
route = 178.236.0.0/255.255.240.0
route = 184.72.0.0/255.254.0.0
route = 184.169.128.0/255.255.128.0
route = 185.48.120.0/255.255.252.0
route = 199.127.232.0/255.255.252.0
route = 199.255.192.0/255.255.252.0
route = 203.83.220.0/255.255.252.0
route = 204.236.128.0/255.255.128.0
route = 204.246.0.0/255.255.0.0
route = 205.251.192.0/255.255.224.0
route = 205.251.0.0/255.255.0.0
route = 207.171.160.0/255.255.224.0
route = 216.137.0.0/255.255.0.0
route = 216.182.224.0/255.255.240.0
# Apple
route = 17.0.0.0/255.0.0.0
route = 63.92.224.0/255.255.224.0
route = 192.12.74.0/255.255.255.0
route = 192.42.249.0/255.255.255.0
route = 204.79.190.0/255.255.255.0
# Cloudflare
route = 104.16.0.0/255.240.0.0
route = 108.162.0.0/255.255.0.0
route = 162.158.0.0/255.254.0.0
route = 173.245.48.0/255.255.240.0
route = 198.41.128.0/255.255.128.0
route = 199.27.128.0/255.255.248.0
route = 204.93.177.0/255.255.255.0
# Dropbox
route = 108.160.160.0/255.255.240.0
route = 199.47.216.0/255.255.252.0
route = 205.189.0.0/255.255.255.0
# E-hentai
route = 37.48.64.0/255.255.192.0
route = 85.17.0.0/255.255.0.0
route = 95.211.0.0/255.255.0.0
# Edgecast
route = 5.104.64.0/255.255.248.0
route = 12.202.248.0/255.255.255.0
route = 46.22.70.0/255.255.254.0
route = 68.232.0.0/255.255.0.0
route = 72.21.80.0/255.255.240.0
route = 93.184.0.0/255.255.0.0
route = 108.161.240.0/255.255.240.0
route = 110.232.176.0/255.255.252.0
route = 117.18.232.0/255.255.248.0
route = 192.16.0.0/255.255.192.0
route = 192.30.0.0/255.255.0.0
route = 192.229.128.0/255.255.128.0
route = 198.7.0.0/255.255.0.0
# Facebook
route = 31.13.24.0/255.255.248.0
route = 31.13.64.0/255.255.192.0
route = 66.220.144.0/255.255.240.0
route = 69.63.176.0/255.255.240.0
route = 69.171.224.0/255.255.224.0
route = 74.119.76.0/255.255.252.0
route = 173.252.64.0/255.255.192.0
route = 199.201.64.0/255.255.252.0
route = 204.15.20.0/255.255.252.0
# Fastly
route = 23.235.32.0/255.255.240.0
route = 104.156.80.0/255.255.240.0
route = 199.27.72.0/255.255.248.0
# Fc2
route = 199.116.176.0/255.255.252.0
route = 208.71.104.0/255.255.252.0
# Github
route = 192.30.252.0/255.255.252.0
# Google
route = 8.6.48.0/255.255.248.0
route = 8.8.4.0/255.255.255.0
route = 8.8.8.0/255.255.255.0
route = 8.15.202.0/255.255.255.0
route = 8.34.208.0/255.255.240.0
route = 8.35.192.0/255.255.240.0
route = 23.236.48.0/255.255.240.0
route = 23.251.128.0/255.255.224.0
route = 64.9.224.0/255.255.224.0
route = 64.233.160.0/255.255.224.0
route = 66.102.0.0/255.255.240.0
route = 66.249.64.0/255.255.224.0
route = 70.32.128.0/255.255.224.0
route = 72.14.192.0/255.255.192.0
route = 74.125.0.0/255.255.0.0
route = 104.132.0.0/255.252.0.0
route = 104.154.0.0/255.254.0.0
route = 104.196.0.0/255.252.0.0
route = 107.167.160.0/255.255.224.0
route = 107.178.192.0/255.255.192.0
route = 108.59.80.0/255.255.240.0
route = 108.170.192.0/255.255.192.0
route = 108.177.0.0/255.255.128.0
route = 130.211.0.0/255.255.0.0
route = 142.250.0.0/255.254.0.0
route = 146.148.0.0/255.255.128.0
route = 162.216.148.0/255.255.252.0
route = 162.222.176.0/255.255.248.0
route = 172.217.0.0/255.255.0.0
route = 172.253.0.0/255.255.0.0
route = 173.194.0.0/255.255.0.0
route = 173.255.112.0/255.255.240.0
route = 192.158.28.0/255.255.252.0
route = 192.178.0.0/255.254.0.0
route = 199.192.112.0/255.255.252.0
route = 199.223.232.0/255.255.248.0
route = 207.223.160.0/255.255.240.0
route = 209.85.128.0/255.255.128.0
route = 216.58.192.0/255.255.224.0
route = 216.239.32.0/255.255.224.0
route = 66.249.80.0/255.255.240.0
route = 64.18.0.0/255.255.240.0
route = 207.126.144.0/255.255.240.0
# Mediafire
route = 199.91.152.0/255.255.248.0
route = 205.196.120.0/255.255.252.0
# Novell
route = 130.57.0.0/255.255.0.0
route = 137.65.0.0/255.255.0.0
route = 147.2.0.0/255.255.0.0
route = 151.155.0.0/255.255.0.0
route = 164.99.0.0/255.255.0.0
route = 192.31.114.0/255.255.255.0
route = 192.68.205.0/255.255.255.0
route = 192.94.118.0/255.255.255.0
route = 192.108.102.0/255.255.255.0
route = 192.149.26.0/255.255.255.0
# Sourceforge
route = 216.34.181.96/255.255.255.255
# Twitter
route = 8.25.192.0/255.255.252.0
route = 8.25.196.0/255.255.254.0
route = 192.133.76.0/255.255.252.0
route = 199.16.156.0/255.255.252.0
route = 199.59.148.0/255.255.252.0
route = 199.96.56.0/255.255.248.0
# Versign
route = 12.6.4.0/255.255.255.0
route = 12.39.57.0/255.255.255.0
route = 12.41.110.0/255.255.255.0
route = 12.186.145.0/255.255.255.0
route = 12.235.8.0/255.255.255.0
route = 63.95.5.0/255.255.255.0
route = 65.220.94.0/255.255.255.0
route = 69.36.0.0/255.255.0.0
route = 69.58.176.0/255.255.240.0
route = 72.13.32.0/255.255.224.0
route = 81.19.0.0/255.255.0.0
route = 81.21.101.0/255.255.255.0
route = 192.5.6.0/255.255.255.0
route = 192.12.94.0/255.255.255.0
route = 192.26.92.0/255.255.255.0
route = 192.31.80.0/255.255.255.0
route = 192.33.14.0/255.255.255.0
route = 192.35.51.0/255.255.255.0
route = 192.41.162.0/255.255.255.0
route = 192.42.93.0/255.255.255.0
route = 192.43.172.0/255.255.255.0
route = 192.48.79.0/255.255.255.0
route = 192.52.178.0/255.255.255.0
route = 192.54.112.0/255.255.255.0
route = 192.55.83.0/255.255.255.0
route = 192.58.128.0/255.255.255.0
route = 193.109.220.0/255.255.255.0
route = 198.41.0.0/255.255.252.0
route = 199.7.0.0/255.255.0.0
route = 199.16.0.0/255.255.0.0
route = 203.144.0.0/255.255.0.0
route = 208.205.190.0/255.255.255.0
route = 209.112.112.0/255.255.240.0
route = 216.87.156.0/255.255.252.0
route = 216.168.0.0/255.255.0.0
route = 217.30.88.0/255.255.252.0
route = 217.30.92.0/255.255.254.0
# Wikimedia
route = 91.198.174.0/255.255.255.0
route = 185.15.56.0/255.255.252.0
route = 198.35.26.0/255.255.254.0
route = 198.73.209.0/255.255.255.0
route = 208.80.152.0/255.255.252.0
# Wordpress
route = 66.155.8.0/255.255.248.0
route = 76.74.248.0/255.255.248.0
route = 192.0.64.0/255.255.192.0
route = 198.181.116.0/255.255.252.0
route = 199.47.91.0/255.255.255.0
# Instagram
route = 72.246.0.0/255.255.0.0

以上是关于openconnect server端怎样配置路由表以区分墙内外IP?的主要内容,如果未能解决你的问题,请参考以下文章

ini OpenConnect路由配置,参考http://www.v2ex.com/t/136431,修改精简到200条

如何在openwrt路由器上安装使用openconnect客户端?

华为路由器Failed to connect to the remote host错误

无法使 Docker 容器使用 OpenConnect *** 连接

vue 路由跳转后 怎样去掉指定的组件

关于centos7下nginx配置多个server的问题?