Hi Frank, your patch did not work for me. I did it this way:

--- frontend.bak        2016-03-01 16:21:22.000000000 +0100
+++ frontend.py 2016-03-01 16:26:23.000000000 +0100
@@ -403,6 +403,8 @@
                         r.set_v6(False)
                         tmp = self.backend.set_rule(r)
                     elif ip_version == "v6":
+                        if r.position != 0 and r.position <= num_v4:
+                            r.position = num_v4 + 1
                         if r.position > num_v4:
                             r.set_position(r.position - num_v4)
                         elif r.position != 0 and r.position <= num_v4:

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368411

Title:
  Cannot insert IPV6 rule before IPV4 rules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/1368411/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to