Hello Senthil

You asked if you can run haproxy as a non root user.

Yes you can but only for ports above 1024, ports below 1024 and port 80 as
per your config will require root privileges to bind to the port.


Andruw Smalley

Loadbalancer.org Ltd.
www.loadbalancer.org <https://www.loadbalancer.org/?gclid=ES2017>

<https://plus.google.com/+LoadbalancerOrg>
<https://twitter.com/loadbalancerorg>
<http://www.linkedin.com/company/3191352?trk=prof-exp-company-name>
<https://www.loadbalancer.org/?category=company&post-name=overview&?gclid=ES2017>
<https://www.loadbalancer.org/?gclid=ES2017>
+1 888 867 9504 / +44 (0)330 380 1064
asmal...@loadbalancer.org

Leave a Review
<http://collector.reviews.io/loadbalancer-org-inc-/new-review> | Deployment
Guides
<https://www.loadbalancer.org/?category=resources&post-name=deployment-guides&?gclid=ES2017>
| Blog <https://www.loadbalancer.org/?category=blog&?gclid=ES2017>

On 28 December 2017 at 11:24, Senthil Naidu <sent...@netmagicsolutions.com>
wrote:

> Hi,
>
>
>
> Is there any way to run haproxy as non-root with  backend configured
> inside the namespace  as seen below but the same shows “general socket
> error” , if we run the same by removing the user and group from haproxy and
> run the same as root the the same works fine.
>
>
>
> Regards
>
> Senthil
>
>
>
>
>
> global
>
> maxconn 10000
>
> log 127.0.0.1 local0 notice
>
> log 127.0.0.1 local1 notice
>
> chroot /usr/haproxy
>
> user haproxy
>
> group haproxy
>
> daemon
>
>
>
> frontend  HTTP
>
> bind 10.14.14.21:80 namespace red
>
> mode http
>
> log global
>
> option httplog
>
> option httpclose
>
> option forwardfor
>
> maxconn 2000
>
> timeout client 180s
>
> default_backend  HTTPBACK
>
>
>
> backend HTTPBACK
>
> balance roundrobin
>
> mode http
>
> log global
>
> option httplog
>
> option httpchk HEAD /
>
> fullconn  2000
>
> timeout server 180s
>
> default-server inter 3s rise 2 fall 3 slowstart 0
>
> server RHEL64 10.14.14.4:80 weight 12 maxconn 2000 check namespace red
>
>
> Senthil Naidu
> Deputy General Manager - IT Engineering
> IT Engineering
> Netmagic (An NTT Communications Company)
> * Direct:* +91 22 40090100
> *Cell:* 7738784713
> *Email:* sent...@netmagicsolutions.com
>
> <https://www.netmagicsolutions.com/press-releases/ntt-communications-named-a-leader-in-2017-gartner-magic-quadrant-for-managed-hybrid-cloud-hosting-asia-pacific-for-third-year-in-a-row>
>  *NTT
> Communications Named a Leader in 'Gartner Magic Quadrant for Managed Hybrid
> Cloud Hosting, Asia/Pacific 2017', for Third Year in a Row.
> <https://www.netmagicsolutions.com/press-releases/ntt-communications-named-a-leader-in-2017-gartner-magic-quadrant-for-managed-hybrid-cloud-hosting-asia-pacific-for-third-year-in-a-row>*
>
>
> *Data Center Services
> <http://www.netmagicsolutions.com/datacenter-services>| Hosted IT
> Infrastructure
> <http://www.netmagicsolutions.com/managed-dedicated-servers-hosting-in-india.html>
> | Cloud Services
> <http://www.netmagicsolutions.com/cloud-infrastructure-services>| Managed
> Services
> <http://www.netmagicsolutions.com/infrastructure-management-services> |
> Infrastructure Application
> <http://www.netmagicsolutions.com/simpliapp-overview> | Network Services
> <http://www.netmagicsolutions.com/network-services> *
> <http://www.netmagicsolutions.com>
>

Reply via email to