LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Allowing Jabber through firewall. (https://www.linuxquestions.org/questions/linux-security-4/allowing-jabber-through-firewall-302607/)

TheRealDeal 03-17-2005 12:12 AM

Allowing Jabber through firewall.
 
Hi.

I have a jabber server running on a server, which also is running samba shares.

I am using iptables to secure it, which has been running fine since the server went in. I have only just put a jabber server on though. I have allowed ports 5222,5223, and 5269 through the firewall using...

/sbin/iptables -t filter -A INPUT -p tcp -m multiport --dport 5222,5223,5269 -j ACCEPT

... but it still won't allow me to connect from the client machines.

If I don't put an entry in the firewall to allow these ports through, this is what gets logged...

Mar 17 18:48:07 jabserver kernel: IN=eth0 OUT= MAC=00:c0:9f:21:70:69:00:04:75:72:7b:3f:05:00 SRC=192.168.100.70 DST=192.168.100.40 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=14542 DF PROTO=TCP SPT=1243 DPT=5222 WINDOW=65535 RES=0x00 SYN URGP=0

If I do allow the ports above through. I don't get the log in the messages file when I try to connect.

Strange I think. Anyone got any clues?

Thanks alot.
Craig

Gecko 03-18-2005 12:34 PM

Do you need an output rule, as well?

Capt_Caveman 03-19-2005 11:34 PM

Can you connect to the server if the firewall is turned off? If yes, does an nmap scan show the Jabber ports as open when the firewall is up and you've added the iptables rule to allow Jabber traffic?


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