mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
More OpenVPN fixes
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5879 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
49b8d72825
commit
ce1c98821c
@ -128,7 +128,11 @@ sub setup_tunnels() {
|
|||||||
$port = $p;
|
$port = $p;
|
||||||
$protocol = $proto;
|
$protocol = $proto;
|
||||||
} elsif ( $proto ) {
|
} elsif ( $proto ) {
|
||||||
|
if ( "\L$proto" =~ /udp|tcp/ ) {
|
||||||
$protocol = $proto;
|
$protocol = $proto;
|
||||||
|
} else {
|
||||||
|
$port = $proto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
add_rule $inchainref, "-p $protocol $source --dport $port -j ACCEPT";
|
add_rule $inchainref, "-p $protocol $source --dport $port -j ACCEPT";
|
||||||
@ -147,7 +151,11 @@ sub setup_tunnels() {
|
|||||||
$port = $p;
|
$port = $p;
|
||||||
$protocol = $proto;
|
$protocol = $proto;
|
||||||
} elsif ( $proto ) {
|
} elsif ( $proto ) {
|
||||||
|
if ( "\L$proto" =~ /udp|tcp/ ) {
|
||||||
$protocol = $proto;
|
$protocol = $proto;
|
||||||
|
} else {
|
||||||
|
$port = $proto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
add_rule $inchainref, "-p $protocol $source --sport $port -j ACCEPT";
|
add_rule $inchainref, "-p $protocol $source --sport $port -j ACCEPT";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user