Community discussions

MikroTik App
 
olivermbs
just joined
Topic Author
Posts: 7
Joined: Sun Apr 12, 2009 2:33 pm

RouterOS and Shoutcast Server

Tue May 19, 2009 6:56 pm

Hello all,

I've got a problem with shoutcast, a program for broadcasting internet radio. I opened the port on the router (port 8000) but when I type my IP into the internet browser followed by port :8000 I do not the Shoucast page as I should.

Any help please?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7192
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: RouterOS and Shoutcast Server

Wed May 20, 2009 12:57 pm

show your nat rules
/ip firewall nat print
 
olivermbs
just joined
Topic Author
Posts: 7
Joined: Sun Apr 12, 2009 2:33 pm

Re: RouterOS and Shoutcast Server

Thu May 21, 2009 11:31 pm

in Telnet, ip/firewall/nat/print gives:


0 chain=srcnat action=masquerade out-interface=EOLO

1 chain=dstnat action=dst-nat to-addresses=192.168.2.250
to-ports=5900
protocol=tcp dst-address=78.134.0.0/16 dst-port=5900

2 chain=dstnat action=dst-nat to-addresses=192.168.2.250
to-ports=63392
protocol=tcp dst-address=78.134.0.0/16 dst-port=63392

3 chain=dstnat action=dst-nat to-addresses=192.168.2.250
to-ports=8000
protocol=tcp dst-address=78.134.0.0/16 dst-port=8000

4 chain=dstnat action=dst-nat to-addresses=192.168.2.250
to-ports=8001
protocol=tcp dst-address=78.134.0.0/16 dst-port=8001

5 chain=dstnat action=dst-nat to-addresses=192.168.2.250
to-ports=1723
protocol=tcp dst-address=78.134.0.0/16 dst-port=1723
 
olivermbs
just joined
Topic Author
Posts: 7
Joined: Sun Apr 12, 2009 2:33 pm

Re: RouterOS and Shoutcast Server

Fri May 22, 2009 7:57 pm

Oh and by the way the other NAT rules are for opening ports, perhaps they need translate=yes?
 
burek
just joined
Posts: 22
Joined: Sun Dec 09, 2007 8:42 pm

Re: RouterOS and Shoutcast Server

Sat May 23, 2009 10:53 am

you also need port 8001 for SC to work properly
further more, if you assign some custom port N for SC server, you need to open both ports N and N+1, because of the way SC works

refer to: http://www.shoutcast.com/support
# D3. I'm behind a firewall/proxy. Can I still use the DNAS to broadcast?
# Answer: Tricky question. Users behind proxies cannot. Users behind NAT devices can, *provided* the same port the SHOUTcast Radio server runs on is set up to forward from the NAT device to the SHOUTcast Radio server. Users behind firewalls can also get a hole punched so listeners can penetrate. If broadcasters also need to get in from the outside world, you should open the hole for PortBase + 1 (i.e. id SHOUTcast Radio runs on 8000, 8001 should be open for broadcasters to get through as well.)
 
olivermbs
just joined
Topic Author
Posts: 7
Joined: Sun Apr 12, 2009 2:33 pm

Re: RouterOS and Shoutcast Server

Sat May 23, 2009 3:03 pm

Thanks for your reply burek. If you look at the above rules you can see I already forwarded port 8000 and 8001 but no luck. :(
 
burek
just joined
Posts: 22
Joined: Sun Dec 09, 2007 8:42 pm

Re: RouterOS and Shoutcast Server

Sat May 23, 2009 6:45 pm

yes I see, sorry, I haven't payed attention to it the first time..

this example forwards all ports from the public ip of 78.134.1.1 to a private ip of 192.168.2.250:
chain=srcnat src-address=192.168.2.250 action=src-nat to-addresses=78.134.1.1 to-ports=0-65535
chain=dstnat dst-address=78.134.1.1 action=dst-nat to-addresses=192.168.2.250 to-ports=0-65535
you can do something like this if you want specific ports only:
chain=srcnat src-address=192.168.2.250 action=src-nat to-addresses=78.134.1.1 to-ports=5900,63392,8000,80001,1723
chain=dstnat dst-address=78.134.1.1 action=dst-nat to-addresses=192.168.2.250 to-ports=5900,63392,8000,80001,1723

Who is online

Users browsing this forum: coolalexg, jvanhambelgium and 32 guests