mirror of
https://gitlab.com/shorewall/code.git
synced 2025-05-18 23:20:53 +02:00
Fix openvpnserver handling
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6242 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
21a71d7b64
commit
cad5d896d3
@ -177,7 +177,11 @@ sub setup_tunnels() {
|
||||
$port = $p;
|
||||
$protocol = $proto;
|
||||
} elsif ( $proto ) {
|
||||
if ( "\L$proto" =~ /udp|tcp/ ) {
|
||||
$protocol = $proto;
|
||||
} else {
|
||||
$port = $proto;
|
||||
}
|
||||
}
|
||||
|
||||
add_rule $inchainref, "-p $protocol $source --dport $port -j ACCEPT";
|
||||
|
Loading…
Reference in New Issue
Block a user