Menu

#5075 ip6firewall enable_at_boot in debian

1.870
closed-fixed
nobody
None
5
2018-01-19
2018-01-18
No

enable_at_boot is not working for ipv6 on debian.

My solution:

file: firewall{6,}/debian-linux-lib.pl
line: 68
replace
$1 eq $iptables_save_file) {
by
$1 eq ($ipvx == 6 ? $ip6tables_save_file : $iptables_save_file) ) { # $1 eq $iptables_save_file ) {

line: 92
replace
[ "post-up", "ip${ipvx}tables-restore < $iptables_save_file" ]);
by
[ "post-up", "ip${ipvx}tables-restore < " . $ipvx == 6 ? $ip6tables_save_file : $iptables_save_file ]);

Discussion

  • Thomas Dietrich

    Thomas Dietrich - 2018-01-18

    sorry! the comment at the end of line 68 is not needed

     
  • Jamie Cameron

    Jamie Cameron - 2018-01-19
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2018-01-19

    Thanks - a similar fix will go into the next Webmin release.

     

Log in to post a comment.