@@ -89,7 +89,7 @@ static int ipt6_iface_setup(void)
8989int fh_ipt6_setup (void )
9090{
9191 char xmark_str [64 ], nfqnum_str [32 ];
92- size_t i , ipt_cmds_cnt , ipt_opt_cmds_cnt ;
92+ size_t i , ipt_cmds_cnt ;
9393 int res ;
9494 char * ipt_cmds [][32 ] = {
9595 {"ip6tables" , "-w" , "-t" , "mangle" , "-N" , "FAKEHTTP_S" , NULL },
@@ -128,7 +128,6 @@ int fh_ipt6_setup(void)
128128 {"ip6tables" , "-w" , "-t" , "mangle" , "-A" , "FAKEHTTP_S" , "-s" ,
129129 "fe80::/10" , "-j" , "RETURN" , NULL },
130130
131-
132131 /*
133132 exclude special IPv6 addresses (to destination)
134133 */
@@ -156,14 +155,6 @@ int fh_ipt6_setup(void)
156155 /*
157156 exclude marked packets
158157 */
159- {"ip6tables" , "-w" , "-t" , "mangle" , "-A" , "FAKEHTTP_R" , "-m" , "mark" ,
160- "--mark" , xmark_str , "-j" , "CONNMARK" , "--set-xmark" , xmark_str ,
161- NULL },
162-
163- {"ip6tables" , "-w" , "-t" , "mangle" , "-A" , "FAKEHTTP_R" , "-m" ,
164- "connmark" , "--mark" , xmark_str , "-j" , "MARK" , "--set-xmark" ,
165- xmark_str , NULL },
166-
167158 {"ip6tables" , "-w" , "-t" , "mangle" , "-A" , "FAKEHTTP_R" , "-m" , "mark" ,
168159 "--mark" , xmark_str , "-j" , "RETURN" , NULL },
169160
@@ -174,22 +165,10 @@ int fh_ipt6_setup(void)
174165 "--tcp-flags" , "SYN,FIN,RST" , "SYN" , "-j" , "NFQUEUE" ,
175166 "--queue-bypass" , "--queue-num" , nfqnum_str , NULL }};
176167
177- char * ipt_opt_cmds [][32 ] = {
178- /*
179- exclude packets from connections with more than 32 packets
180- */
181- {"ip6tables" , "-w" , "-t" , "mangle" , "-I" , "FAKEHTTP_R" , "-m" ,
182- "connbytes" , "!" , "--connbytes" , "0:32" , "--connbytes-dir" , "both" ,
183- "--connbytes-mode" , "packets" , "-j" , "RETURN" , NULL },
184-
185- /*
186- exclude big packets
187- */
188- {"ip6tables" , "-w" , "-t" , "mangle" , "-I" , "FAKEHTTP_R" , "-m" , "length" ,
189- "!" , "--length" , "0:120" , "-j" , "RETURN" , NULL }};
168+ E ("ERROR: iptables rules is under development, please use nft." );
169+ return -1 ;
190170
191171 ipt_cmds_cnt = sizeof (ipt_cmds ) / sizeof (* ipt_cmds );
192- ipt_opt_cmds_cnt = sizeof (ipt_opt_cmds ) / sizeof (* ipt_opt_cmds );
193172
194173 res = snprintf (xmark_str , sizeof (xmark_str ), "%" PRIu32 "/%" PRIu32 ,
195174 g_ctx .fwmark , g_ctx .fwmask );
@@ -214,10 +193,6 @@ int fh_ipt6_setup(void)
214193 }
215194 }
216195
217- for (i = 0 ; i < ipt_opt_cmds_cnt ; i ++ ) {
218- fh_execute_command (ipt_opt_cmds [i ], 1 , NULL );
219- }
220-
221196 res = ipt6_iface_setup ();
222197 if (res < 0 ) {
223198 E (T (ipt6_iface_setup ));
0 commit comments