Im sorry to say that I have completely wiped my Linux machine and reinstalled Raspbian and everything works fine now. I did not touch anything to do with the ip6tables beforehand. Possibly got corrupted somehow.
Thanks
From: <email address hidden> <email address hidden> on behalf of costales <email address hidden>
Sent: Wednesday, June 6, 2018 8:15:51 PM
To: <email address hidden>
Subject: [Bug 1775282] Re: ERROR: Problem running ip6tables
Thanks for getting back to me. Glad it is working now. Since there is a lack of information, I'm going to close this bug. Please feel free to report other issues you may find.
What is the output of the following command:
$ sudo /usr/share/ ufw/check- requirements
I suspect you have disabled ipv6 in some manner. You might be able to simply use IPV6=no in /etc/default/ufw.