interfaces openvpn <vtunx> local-host <ipv4>
Specifies the local IP address to which connections are accepted.
- vtunx
- The identifier for the OpenVPN interface. This may be vtun0 to vtunx, where x is a non-negative integer.
- ipv4
- The IP address of the local physical interface. This address is the IP address on which connections are accepted. If not specified, then all connections are accepted.
Configuration mode
interfaces {
openvpn vtunx {
local-host ipv4
}
}
Use this command to specify the local IP address to which connections are accepted. This address can be used as a server endpoint in a remote access mode tunnel or the TCP-passive endpoint when TCP is used in site-to-site mode. The address can be an IP address on any network interface on this endpoint. If this address is specified, the OpenVPN process accepts only sessions coming in on the particular IP address, and this acceptance applies to both UDP and TCP. If an address is not specified, OpenVPN accepts incoming sessions on any interface.
Use the set form of this command to specify the local IP address to which connections are accepted.
Use the delete form of this command to remove the local IP address to which connections are accepted.
Use the show form of this command to view the local IP address to which connections are accepted.