Skip to content
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

when accessing via IP; click to proceed warning #4

Open
iptvcld opened this issue Feb 1, 2024 · 4 comments
Open

when accessing via IP; click to proceed warning #4

iptvcld opened this issue Feb 1, 2024 · 4 comments

Comments

@iptvcld
Copy link

iptvcld commented Feb 1, 2024

SInce AGH only allows the use of an IP for use a block page (not sure why...) I keep getting a message to click here to proceed then the custom page comes up.. Does anyone have any tricks for this?

@senhan07
Copy link
Owner

senhan07 commented Feb 1, 2024

SInce AGH only allows the use of an IP for use a block page (not sure why...) I keep getting a message to click here to proceed then the custom page comes up.. Does anyone have any tricks for this?

The problem is happening because the website uses a secure connection (HTTPS), but the website certificate doesn't match the destination where is the redirection IP Address you configured. That's why you see a warning page. When you try accessing the website with a regular connection (HTTP), it works fine and shows the block page.

One potential solution to make it work with HTTPS is by using a proxy with SSL bump, but I haven't tried that yet. It might help with SSL issue

@iptvcld
Copy link
Author

iptvcld commented Feb 1, 2024

SInce AGH only allows the use of an IP for use a block page (not sure why...) I keep getting a message to click here to proceed then the custom page comes up.. Does anyone have any tricks for this?

The problem is happening because the website uses a secure connection (HTTPS), but the website certificate doesn't match the destination where is the redirection IP Address you configured. That's why you see a warning page. When you try accessing the website with a regular connection (HTTP), it works fine and shows the block page.

One potential solution to make it work with HTTPS is by using a proxy with SSL bump, but I haven't tried that yet. It might help with SSL issue

I have been trying to get this going for a 4 days now. I have HAProxy that redirect 80 to 443 and setup a nginx server but still get asked to click. There has to be a way to make this redirect work and one time i got it working on a computer but then on the mobile device it does not work

@senhan07
Copy link
Owner

senhan07 commented Feb 1, 2024

SInce AGH only allows the use of an IP for use a block page (not sure why...) I keep getting a message to click here to proceed then the custom page comes up.. Does anyone have any tricks for this?

The problem is happening because the website uses a secure connection (HTTPS), but the website certificate doesn't match the destination where is the redirection IP Address you configured. That's why you see a warning page. When you try accessing the website with a regular connection (HTTP), it works fine and shows the block page.
One potential solution to make it work with HTTPS is by using a proxy with SSL bump, but I haven't tried that yet. It might help with SSL issue

I have been trying to get this going for a 4 days now. I have HAProxy that redirect 80 to 443 and setup a nginx server but still get asked to click. There has to be a way to make this redirect work and one time i got it working on a computer but then on the mobile device it does not work

By you mean HAProxy redirect 80 to 443 is that the nginx server running on HTTPS?, Just running the web server on HTTPS alone won't solve the issue. The problem lies in a mismatch between the domain/IP address on the SSL certificate.

so for ex. when you trying open blocked site like https://xxx.com (IP:118.98.115.77) the AGH redirect the IP Address to nginx (ex. IP:192.168.1.10). since the SSL certificate on https://xxx.com is only accept domain xxx.com or 118.98.115.77 the browser show up warning page telling the certificate doesn't match

@iptvcld
Copy link
Author

iptvcld commented Feb 1, 2024

SInce AGH only allows the use of an IP for use a block page (not sure why...) I keep getting a message to click here to proceed then the custom page comes up.. Does anyone have any tricks for this?

The problem is happening because the website uses a secure connection (HTTPS), but the website certificate doesn't match the destination where is the redirection IP Address you configured. That's why you see a warning page. When you try accessing the website with a regular connection (HTTP), it works fine and shows the block page.
One potential solution to make it work with HTTPS is by using a proxy with SSL bump, but I haven't tried that yet. It might help with SSL issue

I have been trying to get this going for a 4 days now. I have HAProxy that redirect 80 to 443 and setup a nginx server but still get asked to click. There has to be a way to make this redirect work and one time i got it working on a computer but then on the mobile device it does not work

By you mean HAProxy redirect 80 to 443 is that the nginx server running on HTTPS?, Just running the web server on HTTPS alone won't solve the issue. The problem lies in a mismatch between the domain/IP address on the SSL certificate.

so for ex. when you trying open blocked site like https://xxx.com (IP:118.98.115.77) the AGH redirect the IP Address to nginx (ex. IP:192.168.1.10). since the SSL certificate on https://xxx.com is only accept domain xxx.com or 118.98.115.77 the browser show up warning page telling the certificate doesn't match

Hmm so it seems like there is no workaround for this? Why even have an option to redirect to a custom page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants