mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
unfiy edit_rule
This commit is contained in:
@@ -44,6 +44,14 @@ else {
|
||||
'--physdev-in',
|
||||
'--physdev-out');
|
||||
|
||||
@ipvx_rtypes = ( "icmp-net-unreachable", "icmp-host-unreachable",
|
||||
"icmp-port-unreachable", "icmp-proto-unreachable",
|
||||
"icmp-net-prohibited", "icmp-host-prohibited",
|
||||
"echo-reply", "tcp-reset" );
|
||||
|
||||
$ipvx_todestpattern='^([0-9\.]+)(\-([0-9\.]+))?(:(\d+)(\-(\d+))?)?$';
|
||||
|
||||
|
||||
# set IP Version
|
||||
&set_ipvx_version('ipv4');
|
||||
|
||||
|
||||
@@ -44,6 +44,12 @@ else {
|
||||
'--physdev-in',
|
||||
'--physdev-out');
|
||||
|
||||
@ipvx_rtypes = ( "icmp6-no-route", "icmp6-adm-prohibited",
|
||||
"icmp6-addr-unreachable", "icmp6-port-unreachable",
|
||||
"echo-reply", "tcp-reset" );
|
||||
|
||||
$ipvx_todestpattern='^\[([0-9A-Fa-f:]+)](\-([0-9A-Fa-f:]+))?(:(\d+)(\-(\d+))?)?$';
|
||||
|
||||
# set IP Version
|
||||
&set_ipvx_version('ipv6');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user