Koozali.org: home of the SME Server

Port forwarding issues

achandra

Port forwarding issues
« on: September 10, 2006, 11:54:42 AM »
Hello,

I am attempting to use the port forwarding panel,  and one I open a port say 5060 and forward it to 192.168.0.8, it doesnt work.

Specifically I have done a netstat -anp | grep 5060 and nothing shows up.

I have also verified the port 5060 to  to be up and working on the internal host with no selinux or iptables firewalls running.

I have checked the /etc/init.d/masq file and while the entry is there...i am pretty confident port forwarding isnt working...can someone help out??

achandra

is this a bug??
« Reply #1 on: September 10, 2006, 01:06:34 PM »
Hi have done multiple attempts at this now with different ports..

is this a bug>>  :-(

Offline JonB

  • *
  • 351
  • +0/-0
Port forwarding issues
« Reply #2 on: September 10, 2006, 02:37:52 PM »
Are you in Server/Gateway mode or Server only?

What is your network setup?

Jon
...

achandra

the setup
« Reply #3 on: September 10, 2006, 08:30:50 PM »
Server/gateway mode.

Eth0 - external
Eth1 -internal  192.168.0.1

Internal network 192.168.0.0/24

internal machine to forward  to 192.168.0.7/24


Thats pretty much it.

Offline JonB

  • *
  • 351
  • +0/-0
Port forwarding issues
« Reply #4 on: September 10, 2006, 10:00:09 PM »
netstat -anp won't show port forwarded ports.

iptables -L -t nat  will show the forwarded ports in the firewall.

In what way do you think port forwarding not working. Since you mention port 5060 I assume you are forwarding SIP to a Trixbox or a SIP phone.

Are you sure you have the right protocol forwarded UDP not TCP
...

achandra

Good Info
« Reply #5 on: September 10, 2006, 11:38:36 PM »
Jon,

Thanks for the info.. Ill run that command when I get home.

You are correct that it is indeed an * install on the inside.

What Im having issues with is that I get a first ring on the * box from my phone then dead silence.

I was assuming that rtp streams were not forwarding correctly and either the UDP ports for 5060 or range between 10000-20000 for udp traffic was not setup right. I will check again tonight and I could be experiencing some sort of other anomoly. Thnx for your help.

AC

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Port forwarding issues
« Reply #6 on: September 14, 2006, 06:17:45 PM »
Quote from: "achandra"

I am attempting to use the port forwarding panel,  and one I open a port say 5060 and forward it to 192.168.0.8, it doesnt work.


Did you test from the Internet? Port forwarding doesn't (can't) work on the local network.

Quote

Specifically I have done a netstat -anp | grep 5060 and nothing shows up.


You shouldn't expect it to. Port forwarding happens at the IP packet level, and doesn't create any sockets.