Hello,To use OpenVPN with a NIC that has multiple IP addresses set on it, I 
need to use the following statement in the server configuration file:
Local "Virtual IP"
But, when I use the following firewall rules and specify the virtual NIC, 
OpenVPN network card and IP range, is there still a need for Local "Virtual IP"?
# IF_MAIN=eth0:X# IF_TUNNEL=tunX# YOUR_OPENVPN_SUBNET=IP/16# iptables -I INPUT 
-p udp --dport PORT -j ACCEPT# iptables -A FORWARD -i $IF_MAIN -o $IF_TUNNEL -m 
state --state ESTABLISHED,RELATED -j ACCEPT# iptables -A FORWARD -s 
$YOUR_OPENVPN_SUBNET -o $IF_MAIN -j ACCEPT# iptables -t nat -A POSTROUTING -s 
$YOUR_OPENVPN_SUBNET -o $IF_MAIN -j MASQUERADE# iptables -t nat -A POSTROUTING 
-s $YOUR_OPENVPN_SUBNET -j SNAT --to OpenVPN_NIC_IP


Thank you.
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to