VPN内网相关信息快速配置模板
-
连接信息
-
地址
home.xxcheng.cn
-
工具
OpenVPN
-
配置文件
xxx.ovpn
client dev-type tun dev tunx proto udp tun-mtu 1400 cipher BF-CBC comp-lzo remote home.xxcheng.cn 1194 resolv-retry infinite nobind persist-key persist-tun verb 3 auth-user-pass script-security 2 <ca> -----BEGIN CERTIFICATE----- MIIGRTCCBS2gAwIBAgIMDqWfgM7+Q3OaMZ0nMA0GCSqGSIb3DQEBCwUAMEwxCzAJ BgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSIwIAYDVQQDExlB bHBoYVNTTCBDQSAtIFNIQTI1NiAtIEc0MB4XDTI0MDEwNTEzMzkyOVoXDTI1MDIw NTEzMzkyOFowFzEVMBMGA1UEAwwMKi54eGNoZW5nLmNuMIIBIjANBgkqhkiG9w0B AQEFAAOCAQ8AMIIBCgKCAQEAs0u0nfFTr7cDHR4PsQGSqIzNgWKPULeOFjBXohM9 vmcAsZPokzuQW05cxiK6oApOWXEIjzZhoK4YF6LTvFqF99u4HPTjEh7HZptClSWx g6eQL/ZLDzhwONYv8XII6gc8P1dGY7Z+hgM3fvx5yePOoWeVT91xyE08kinI4wDL 4ruTKSD7N4qJ4AH9Gza2x2eiw4LNSvBH1VMeA0INFCSGUyStYsZsK6aNHErM+YrN MoizgPLnhnT7v7+MwPAPXUJIFu3kEcgFNx5lmnjo+LzFYaQ4vWVGPFxf841ZyVFa INwyiY9osKKam4nrQapiGuNwXNu0xIYU1n2s6LevjY6dnwIDAQABo4IDWjCCA1Yw DgYDVR0PAQH/BAQDAgWgMAwGA1UdEwEB/wQCMAAwgZMGCCsGAQUFBwEBBIGGMIGD MEYGCCsGAQUFBzAChjpodHRwOi8vc2VjdXJlLmdsb2JhbHNpZ24uY29tL2NhY2Vy dC9hbHBoYXNzbGNhc2hhMjU2ZzQuY3J0MDkGCCsGAQUFBzABhi1odHRwOi8vb2Nz cC5nbG9iYWxzaWduLmNvbS9hbHBoYXNz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b290IENBMRswGQYDVQQDExJHbG9iYWxT aWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaDuaZ jc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavp xy0Sy6scTHAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp 1Wrjsok6Vjk4bwY8iGlbKk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdG snUOhugZitVtbNV4FpWi6cgKOOvyJBNPc1STE4U6G7weNLWLBYy5d4ux2x8gkasJ U26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrXgzT/LCrBbBlDSgeF59N8 9iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E BTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0B AQUFAAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOz yj1hTdNGCbM+w6DjY1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE 38NflNUVyRRBnMRddWQVDf9VMOyGj/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymP AbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhHhm4qxFYxldBniYUr+WymXUad DKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveCX4XSQRjbgbME HMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A== -----END CERTIFICATE----- </ca> # redirect-gateway def1 bypass-dns # uncomment to set as default gateway # route-nopull # uncomment to disable server route push
-
-
路由信息
-
网关
192.168.222.1
-
分配IP地址池
192.168.222.0/24
-
添加路由表
使用管理员权限打开cmd
::server route.exe ADD 192.168.10.0 MASK 255.255.255.0 192.168.222.1 ::docker route.exe ADD 192.168.13.0 MASK 255.255.255.0 192.168.222.1
如需设置为永久路由,使用
-p
参数::server route.exe ADD -p 192.168.10.0 MASK 255.255.255.0 192.168.222.1 ::docker route.exe ADD -p 192.168.13.0 MASK 255.255.255.0 192.168.222.1
-
删除路由表
route.exe delete 192.168.10.0 192.168.222.1 route.exe delete 192.168.13.0 192.168.222.1
-
打印路由表
route.exe print
-
-
samba
挂载mount.cifs //home.xxcheng.cn/sda /mnt/rda -o username=username,password=password,vers=2.0 mount.cifs //home.xxcheng.cn/sdb /mnt/rdb -o username=username,password=password,vers=2.0
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。