config file entry to bind to specific interfaces

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
solinym
OpenVpn Newbie
Posts: 4
Joined: Fri Nov 19, 2010 11:28 pm

config file entry to bind to specific interfaces

Post by solinym » Fri Nov 19, 2010 11:35 pm

Hey there,

So one thing I ran into the other day was that I wanted to bind to specific interfaces - or rather, I wanted to avoid binding to a specific interface. If I don't, then OpenVPN receives traffic it shouldn't get, gets confused, and then closes the VPN connection. If I firewall off the port, the legitimate server on that interface/port fails to get the traffic.

I can't just bind to a specific IP, since my IP my vary on, say a laptop.

Ideally, I'd like to be able to say something like:

inet_interfaces = wlan0

or better,

inet_interfaces = -lo

That avoids binding to, say, lo.

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: config file entry to bind to specific interfaces

Post by krzee » Sat Nov 20, 2010 12:54 am

i will be moving these questions to configuration. please dont place questions like this in the wishlist

see --local
just bind to the IP you want

Post Reply