Ignacio Valdes Implementation Log/Episode7

From VistApedia
Jump to: navigation, search

The Intracare Implementation Log (Back to Episode 5) (Back to Log Homepage) (On to Episode 8)

iptables and other useful port commands

Ignacio Valdes Date: Mon, 28 Jul 2008 16:41:48 -0500

So we had the server up and running but could only get CPRS running by ssh tunnel at first. We had to open a port on the Linux server as well. Congruency of port numbers for both client and server are necessary. Something like 9330 which should be present in the CPRS P= parameter list and in the xinetd listening port. We used a TCP, not a UDP port so step 2 below is not necessary if you are using TCP only. The following commands taken from this page: http://blog.eukhost.com/webhosting/how-to-open-port-on-server where needed to open our port on the Fedora 9 server so that we could use CPRS from any client without the tunnel:

you can verify the port with

netstat -nap | grep :

1.you can open TCp port with

iptables -A INPUT -p tcp –dport 9330 -j ACCEPT

2. You can open UDP port with

iptables -A INPUT -p udp –sport -j ACCEPT

after that

3. service iptables save

and for flushhing iptables us

4. iptables -F

Episode 5 Log Homepage Episode 8