Skip to content

ERROR: Bad source address when running with --purge #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thousandlemons opened this issue Jul 25, 2022 · 1 comment
Open

ERROR: Bad source address when running with --purge #7

thousandlemons opened this issue Jul 25, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@thousandlemons
Copy link

sudo ./ufw-cf.sh --purge prints the following error:

ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.ERROR: Bad source address
.
Total rules deleted: 0
Total rules created: 0
Total rules ignored: 22
Done.

Here are the relevant existing rules in ufw:

...
80,443/tcp                 ALLOW       173.245.48.0/20            # cloudflare
80,443/tcp                 ALLOW       103.21.244.0/22            # cloudflare
80,443/tcp                 ALLOW       103.22.200.0/22            # cloudflare
80,443/tcp                 ALLOW       103.31.4.0/22              # cloudflare
80,443/tcp                 ALLOW       141.101.64.0/18            # cloudflare
80,443/tcp                 ALLOW       108.162.192.0/18           # cloudflare
80,443/tcp                 ALLOW       190.93.240.0/20            # cloudflare
80,443/tcp                 ALLOW       188.114.96.0/20            # cloudflare
80,443/tcp                 ALLOW       197.234.240.0/22           # cloudflare
80,443/tcp                 ALLOW       198.41.128.0/17            # cloudflare
80,443/tcp                 ALLOW       162.158.0.0/15             # cloudflare
80,443/tcp                 ALLOW       104.16.0.0/13              # cloudflare
80,443/tcp                 ALLOW       104.24.0.0/14              # cloudflare
80,443/tcp                 ALLOW       172.64.0.0/13              # cloudflare
80,443/tcp                 ALLOW       131.0.72.0/22              # cloudflare
...
80,443/tcp                 ALLOW       2400:cb00::/32             # cloudflare
80,443/tcp                 ALLOW       2606:4700::/32             # cloudflare
80,443/tcp                 ALLOW       2803:f800::/32             # cloudflare
80,443/tcp                 ALLOW       2405:b500::/32             # cloudflare
80,443/tcp                 ALLOW       2405:8100::/32             # cloudflare
80,443/tcp                 ALLOW       2a06:98c0::/29             # cloudflare
80,443/tcp                 ALLOW       2c0f:f248::/32             # cloudflare

I'm not sure how to get more debug info as I'm really not proficient in bash. Could you please help take a look?

@thousandlemons
Copy link
Author

Btw I just found out about the content of the /tmp/cloudflare-ips.txt after commenting out the line that removes this file:

173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
141.101.64.0/18
108.162.192.0/18
190.93.240.0/20
188.114.96.0/20
197.234.240.0/22
198.41.128.0/17
162.158.0.0/15
104.16.0.0/13
104.24.0.0/14
172.64.0.0/13
131.0.72.0/22
2400:cb00::/32
2606:4700::/32
2803:f800::/32
2405:b500::/32
2405:8100::/32
2a06:98c0::/29
2c0f:f248::/32

@drvy drvy added the bug Something isn't working label Aug 9, 2022
@drvy drvy self-assigned this Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants