Results 1 to 10 of 10
Hi folks
The mail/database/web server is behind a router. Whether I have to forwarding all following ports to the local ip address of the server?
25
80
110
143
993
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-28-2010 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
Re port forwarding
Hi folks
The mail/database/web server is behind a router. Whether I have to forwarding all following ports to the local ip address of the server?
25
80
110
143
993
8080
Any additional port I have to forward in addition?
TIA
B.R.
satimis
- 07-28-2010 #2
hi
it purely depends on your configuration. i would always open port 666 for the doom services.
what does the 8080 port do in your configuration? if it was just mail, http and such 8080 is completely nonsense.
- 07-28-2010 #3Just Joined!
- Join Date
- Aug 2009
- Location
- Wil, Switzerland
- Posts
- 10
Like Kloschüssel said, it depends on what services should be accessible behind the router. Maybe TCP port 443 if you use HTTPS.
- 07-28-2010 #4Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
Hi Kloschüssel and dmsnail,
Thanks for your advice.
The router is used for testing and haven't been configured for sometimes. I just checked it before posting. There are many ports there which use are out of my recollection. I just pick up some of them.
Please advise which basic ports are necessary for;
1)
Mail Server including Web Mail. Https is used
2)
Web Server
3)
Database Server
TIA
B.R.
satimis
- 07-28-2010 #5Just Joined!
- Join Date
- Aug 2009
- Location
- Wil, Switzerland
- Posts
- 10
I can't give you any advice until I know exactly what services you run, what databases you use, and what other systems require access to those systems. And how users authenticate on the mail server.
- 07-28-2010 #6Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
Hi,
Mail/Database/Web Server
Mail server - Postfix, SMTP and POP3
Database - MySQL
Web Server - Apache2, PHP5
WebMail - SquirrelMail/RoundCube
etc
Clients can send/receive mails via Internet. Remote access is NOT required. Database is used holding data of the mail server.
Should further information is required, please advise me. TIA
B.R.
satimis
- 07-28-2010 #7
well, now do a:
Code:foreach i in "Mail server - Postfix, SMTP and POP3 Database - MySQL Web Server - Apache2, PHP5 WebMail - SquirrelMail/RoundCube"; do ports=getPortsUsedBy $i; foreach port in $ports; do addPortToFirewall $port; done; done;

seriously: check your configuration files what ports these services use and set up a forwarding.
- 07-28-2010 #8Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
Hi,
Thanks for your advice.
I don't have "foreach" command here.
$ apt-cache search foreachGoogling said "foreach is in csh". Please advise where can I download it? TIACode:librevm0 - The Reverse Engineering Vector Machine librevm0-dev - The Reverse Engineering Vector Machine r-cran-foreach - GNU R foreach looping support
B.R.
satimis
- 07-28-2010 #9
Please re-read my post and this time try to understand what I wrote there. I intended this pseudo-bash-code as a little gag, but didn't believe you would use it literally.

So this is what you should really do (since the beginning of the thread):
configuration files usually are located within /etc/ of your server. i.e. the apache2 configuration usually is at /etc/apache2/, mysql at /etc/mysql/ and so on.check your configuration files what ports these services use and set up a forwarding
- 07-28-2010 #10Just Joined!
- Join Date
- Aug 2009
- Location
- Wil, Switzerland
- Posts
- 10


Reply With Quote

