Release of iptables-1.3.0rc1
Quoted 2 lines
The netfilter coreteam proudly presents:
iptables version 1.3.0rc1
One note: the userspace side of multiport inversion has not yet been merged (while the kernel side has).
Phil
Quoted 7 lines · Phil Oester
Quoted 2 lines
The netfilter coreteam proudly presents:
iptables version 1.3.0rc1One note: the userspace side of multiport inversion has not yet been merged (while the kernel side has).
Phil
Err...included again here for easy patching :)
extensions/libipt_multiport.c +10 -5
@@ -31,13 +31,13 @@ {printf ("multiport v%s options:\n" -" --source-ports port[,port:port,port...]\n" +" --source-ports [!] port[,port:port,port...]\n" " --sports ...\n" " match source port(s)\n" -" --destination-ports port[,port:port,port...]\n" +" --destination-ports [!] port[,port:port,port...]\n" " --dports ...\n" " match destination port(s)\n" -" --ports port[,port:port,port]\n" +" --ports [!] port[,port:port,port]\n" " match both source and destination port(s)\n" ,IPTABLES_VERSION ); }
@@ -255,8 +255,7 @@ }if (invert) -exit_error (PARAMETER_PROBLEM , -"multiport does not support invert" ); + multiinfo->invert =1 ;if (*flags) exit_error(PARAMETER_PROBLEM,
@@ -362,6 +361,9 @@break ; } +if (multiinfo->invert) +printf ("! " ); +for (i=0 ; i < multiinfo->count; i++) {printf ("%s" , i ?"," :"" );print_port (multiinfo->ports[i], ip->proto, numeric);
@@ -422,6 +424,9 @@break ; } +if (multiinfo->invert) +printf ("! " ); +for (i=0 ; i < multiinfo->count; i++) {printf ("%s" , i ?"," :"" );print_port (multiinfo->ports[i], ip->proto,1 );
include/linux/netfilter_ipv4/ipt_multiport.h +1 -0
@@ -24,5 +24,6 @@u_int8_t count;/* Number of ports */ u_int16_t ports[IPT_MULTI_PORTS ];/* Ports */ u_int8_t pflags[IPT_MULTI_PORTS ];/* Port flags */ + u_int8_t invert; /* Invert flag */ };#endif /*_IPT_MULTIPORT_H*/
Quoted 10 lines · Phil Oester
Quoted 7 lines · Phil Oester
Quoted 2 lines
The netfilter coreteam proudly presents:
iptables version 1.3.0rc1One note: the userspace side of multiport inversion has not yet been merged (while the kernel side has).
Phil
Err...included again here for easy patching :)
Sorry for forgetting, will be in 1.3.0
Sending iptables/extensions/libipt_multiport.c
Sending iptables/include/linux/netfilter_ipv4/ipt_multiport.h
Transmitting file data ..
Committed revision 3651.
Signature · 1 line
/Martin