歡迎您光臨本站 註冊首頁

如何給OPENVPN客戶端設置指定IP

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

如何給OPENVPN客戶端設置指定IP

比如我想給客戶端指定個固定IP192.168.8.4
該怎麼做呢
《解決方案》

LINUX下,我指定tap?數字在改IP用命令
那WIN下改怎麼弄的,高手呀,幫我解決下把,
《解決方案》


--client-config-dir dir
              Specify a directory dir for custom client config files.  After a
              connecting  client  has been authenticated, OpenVPN will look in
              this directory for a file having the same name as  the  client's
              X509  common name.  If a matching file exists, it will be opened
              and parsed for client-specific  configuration  options.   If  no
              matching  file  is  found,  OpenVPN will instead try to open and
              parse a default file called "DEFAULT", which may be provided but
              is not required.

              This  file can specify a fixed IP address for a given client us-
              ing --ifconfig-push, as well  as  fixed  subnets  owned  by  the
              client using --iroute.

              One  of  the  useful properties of this option is that it allows
              client configuration files to be conveniently  created,  edited,
              or  removed while the server is live, without needing to restart
              the server.

              The following options are legal in  a  client-specific  context:
              --push, --push-reset, --iroute, --ifconfig-push, and --config.
《解決方案》

樓上的大哥小第看不明白能詳細說下怎麼配置嗎?
《解決方案》

congli 我明白你的意思了
但是,我選了
--duplicate-cn  : 允許多個客戶端使用相同的common name同時連接

該怎麼指定IP呢
《解決方案》

這個倒沒有試過,要不你測試一下.:mrgreen:
《解決方案》

--client-config-dir /etc/openvpn/ccd
里我建立了個YYL著個用戶
可以在裡面指定IP
但是我一個用戶支持多個客戶端連接,那指定的IP不就重複了?

[火星人 ] 如何給OPENVPN客戶端設置指定IP已經有1212次圍觀

http://coctec.com/docs/service/show-post-30937.html