# Can Access in local but shown the issue "The connection was reset." in internet

**URL:** <https://discourse.haproxy.org/t/can-access-in-local-but-shown-the-issue-the-connection-was-reset-in-internet/10045>\
**Category:** Help!\
**Created:** [July 20, 2024, 3:59am UTC](https://discourse.haproxy.org/t/can-access-in-local-but-shown-the-issue-the-connection-was-reset-in-internet/10045 "2024-07-20T03:59:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuannm](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@tuannm](https://discourse.haproxy.org/u/tuannm)\
**Post date:** [July 20, 2024, 3:59am UTC](https://discourse.haproxy.org/t/can-access-in-local-but-shown-the-issue-the-connection-was-reset-in-internet/10045/1 "2024-07-20T03:59:33Z")

</div>

Hello team,  
please help me fix this issue.

1. topo of deploy:  
i deploy the service with:  
PC —\> Internet ----\> Firewall —\>Haproxy (80/443) ----\> Service Machine
2. configure of Hproxy  
global  
log 127.0.0.1 local2  
chroot /var/lib/haproxy  
pidfile /var/run/haproxy.pid  
maxconn 4000000  
user haproxy  
group haproxy  
daemon  
stats socket /var/lib/haproxy/stats  
defaults  
mode http  
log global  
option httplog  
option dontlognull  
option http-server-close  
option forwardfor except 127.0.0.0/8  
option redispatch  
retries 3  
timeout http-request 10s  
timeout queue 1m  
timeout connect 10s  
timeout client 1m  
timeout server 1m  
timeout http-keep-alive 10s  
timeout check 10s  
maxconn 4000000

frontend stats  
bind \*:8080  
stats enable  
stats uri /stats  
stats refresh 10s

frontend main  
mode http  
bind 0.0.0.0:80  
bind 0.0.0.0:443 ssl crt /etc/ssl/abc-2024.pem  
http-request redirect scheme https unless { ssl\_fc }

acl news hdr(host) -i news.abc.site  
acl beta hdr(host) -i beta.abc.site  
acl caching hdr(host) -i caching.abc.site  
acl search hdr(host) -i search.abc.site  
acl report hdr(host) -i report.abc.site  
acl cmsnew hdr(host) -i cmsnew.abc.site  
acl api-gateway hdr(host) -i api-gateway.abc.site  
acl uploader hdr(host) -i uploader.abc.site  
acl storage hdr(host) -i beta-storage.abc.site  
acl storageepg hdr(host) -i storageepg.abc.site

acl mediastream hdr(host) -i mediastream.abc.site

use\_backend news\_backend if news  
use\_backend beta\_backend if beta  
use\_backend caching\_backend if caching  
use\_backend search\_backend if search  
use\_backend report\_backend if report  
use\_backend cmsnew\_backend if cmsnew  
use\_backend api-gateway\_backend if api-gateway  
use\_backend uploader\_backend if uploader  
use\_backend storage\_backend if storage  
use\_backend storageepg\_backend if storageepg  
use\_backend mediastream\_backend if mediastream

backend news\_backend  
balance roundrobin  
mode http  
server news01 x.y.z.101:8081 check  
server news02 x.y.z.102:8081 check

backend beta\_backend  
balance roundrobin  
mode http  
server beta01 x.y.z.101:8082 check  
server beta02 x.y.z.102:8082 check

backend caching\_backend  
balance roundrobin  
mode http  
server caching01 x.y.z.101:8083 check  
server caching02 x.y.z.102:8083 check

backend search\_backend  
balance roundrobin  
mode http  
server search01 x.y.z.101:8084 check  
server search02 x.y.z.102:8084 check

backend report\_backend  
balance roundrobin  
mode http  
server report01 x.y.z.101:8085 check  
server report02 x.y.z.102:8085 check

backend cmsnew\_backend  
balance source  
mode http  
server cmsnew01 x.y.z.105:8081 check  
server cmsnew02 x.y.z.106:8081 check

backend api-gateway\_backend  
balance source  
mode http  
server api-gateway01 x.y.z.105:8082 check  
server api-gateway02 x.y.z.106:8082 check

backend uploader\_backend  
balance source  
mode http  
server uploader01 x.y.z.105:8083 check  
server uploader02 x.y.z.106:8083 check

backend storage\_backend  
balance source  
mode http  
server storage01 x.y.z.105:8084 check  
server storage02 x.y.z.106:8084 check

backend storageepg\_backend  
balance source  
mode http  
server storageepg01 x.y.z.108:8081 check

backend mediastream\_backend  
balance source  
mode http  
server mediastream01 x.y.z.107:8888 check

1. user case

- I can connect streaming at mediastream.abc.site insite of Firewall with link [https://mediastream.abc.site/live/stream\_1080p/](https://mediastream.abc.site/live/stream_1080p/) (with ip of haproxy)
- I can NOT connect streaming at mediastream.abc.site outsite of Firewall with link [https://mediastream.abc.site/live/stream\_1080p/](https://mediastream.abc.site/live/stream_1080p/) (with ip of Firewall). it shown that “The connection was reset.”
- I can connect all other website nomal  
Please help to fix this issue
