How to allow all outcomming connection?

Post Reply
pt_trieu
Junior Member
Posts: 2
Joined: 23 Oct 2015, 11:27

How to allow all outcomming connection?

Post by pt_trieu »

Hello,

I have just installed CSF on my server and i see it blocks all outcomming connections by default. I see my some website does not work such as whois website, send email (using external smtp server), ...
How to fix it ?
marcele
Junior Member
Posts: 215
Joined: 17 Sep 2007, 17:02

Re: How to allow all outcomming connection?

Post by marcele »

While not recommended CSF does support port ranges. Edit your TCP_OUT and UDP_OUT in /etc/csf/csf/conf to:

TCP_OUT ="1:65535"
UDP_OUT ="1:65535"

That would allow all outgoing TCP and UDP on all ports.
Elizine
Junior Member
Posts: 40
Joined: 17 Aug 2015, 13:04

Re: How to allow all outcomming connection?

Post by Elizine »

Please go through http://www.mysql-apache-php.com/csf-firewall.htm to verify whether the settings are correct. Then remove the current firewall rules and restart CSF.
pt_trieu
Junior Member
Posts: 2
Joined: 23 Oct 2015, 11:27

Re: How to allow all outcomming connection?

Post by pt_trieu »

marcele wrote:While not recommended CSF does support port ranges. Edit your TCP_OUT and UDP_OUT in /etc/csf/csf/conf to:

TCP_OUT ="1:65535"
UDP_OUT ="1:65535"

That would allow all outgoing TCP and UDP on all ports.
Problem has been solved. Thank you very much !
Post Reply