LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Firewall problem when using Sage Pay system (https://www.linuxquestions.org/questions/linux-security-4/firewall-problem-when-using-sage-pay-system-815147/)

proNick 06-19-2010 12:45 PM

Firewall problem when using Sage Pay system
 
hi all,

i have to setup iptables firewall on server with online shop application.

it have included sage pay system.

problem is that i don't know which port i have to open. i tryed with 443, 8080, and few others but no luck - i get blank page after entering credit card details. credit card details are not sent from server.

shopping card application is written in php. unfortunately i have only few informations about that shopping card application, because it was custom builded.

but, when firewall is down, it works ok.

can you give me some advices how to setup firewall. i guess that is only problem with few ports that have to be open.


tnx in adv!

win32sux 06-19-2010 12:47 PM

Quote:

Originally Posted by proNick (Post 4008654)
problem is that i don't know which port i have to open. i tryed with 443, 8080, and few others but no luck

You can find out which port the application is listening on by running netstat as root:
Code:

netstat -pantu | grep LISTEN

unSpawn 06-19-2010 01:14 PM

...and using iptables "-j LOG" rules will show you what traffic goes to what remote host and which port. BTW you still need to address all replies in http://www.linuxquestions.org/questi...-check-804340/. Please take care of it now.


All times are GMT -5. The time now is 01:27 AM.