myservers2

by kamimush
65 deployments · 65 still active · last rev. 4 months ago

Compatible with: CentOS 7
						#!/bin/bash
#<UDF name="PROXY_USER" label="PROXY_USER">
#<UDF name="PROXY_PASS" label="PROXY_PASS">
#<UDF name="PROXY_PORT" label="PROXY_PORT">
yum -y install epel-release  &&  yum -y install 3proxy  &&  echo "nscache 65536
daemon
users $PROXY_USER:CL:$PROXY_PASS
auth $PROXY_AUTHTYPE
allow * $PROXY_ALLOWIP
proxy -n -a -p$PROXY_PORT
setgid 99
setuid 99" > /etc/3proxy.cfg  &&  systemctl enable 3proxy  &&  systemctl restart 3proxy  &&  firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="0.0.0.0/0" accept'  &&  firewall-cmd --add-rich-rule='rule family="ipv4" source address="0.0.0.0/0" accept'