ericpaulbishop / gargoyle

Gargoyle Router Management Utility
http://www.gargoyle-router.com
468 stars 221 forks source link

openvpn: firewall error #923

Closed obsy closed 3 years ago

obsy commented 3 years ago

After restarting firewall

root@Gargoyle:/# /etc/init.d/firewall stop Warning: Unable to locate ipset utility, disabling ipset support

Problem with https://github.com/ericpaulbishop/gargoyle/blob/master/package/plugin-gargoyle-openvpn/files/etc/openvpn.firewall#L142 - if any client connected, this line returns more lines


root@Gargoyle:/# netstat -apn | grep openvpn
tcp        0      0 0.0.0.0:1194            0.0.0.0:*               LISTEN      5220/openvpn
tcp        0      0 192.168.1.1:1194        192.168.1.166:40646     ESTABLISHED 5220/openvpn
unix  2      [ ]         DGRAM                      6735 5220/openvpn        

Add uniq or head -1 or search for 0.0.0.0 etc.