LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   shoutcast (https://www.linuxquestions.org/questions/linux-newbie-8/shoutcast-845334/)

smart_shell 11-19-2010 10:38 AM

shoutcast
 
hi,
I want to do shoutcast radio.
i have adsl modem with static ip 233.13.13.1 and internal lan interface 192.168.1.1.
on nat (adsl) i did port forwarding to my linux router(192.168.1.222)
adsl:8000->192.168.1.222:8000
my shoutcast radio on computer in internal network(10.15.0.0) with ip adress 10.15.0.89.
on linux router i have two lan interfaces (eth0 192.168.1.222) and eth1 10.15.0.222.
i have did iptables rules on linux router(10.15.0.222).

iptables -t nat -A PREROUTING -p tcp --dport 8000 -j DNAT --to-destination 10.15.0.89

iptables -t nat -A POSTROUTING -d 10.15.0.89 -p tcp --dport 8000 -j MASQUERADE

but it doesn't work.

if i try to connect to my server via linux router from my network it works well(music plaing).
telnet 10.15.0.222 8000
if i try to connect to my server via internet it doesn't work.
telnet 233.13.13.1 8000

OS cent os 5.4
radiocast ->Shoutcast

thnx

peterson.julia 11-21-2010 09:39 PM

Tough to guess what it can be?! Configuration, maybe your ISP is blocking something, firewall????? No clue... Post your configs....

frankbell 11-21-2010 09:49 PM

peterson.julia has a good idea. Some ISPs block ports because they don't want private customers running servers. I know that my current one blocks port 80. (My previous one did not. I moved.)

You might try searching for "[ISPNAME] port 80."

AwesomeMachine 11-21-2010 11:23 PM

You firewall is probably blocking new,unrelated incoming high ports 1024:65535, or you might be getting snagged on the internal network before you ever get outside with telnet.

smart_shell 11-21-2010 11:34 PM

Sorry, my firewall rules blocked forward rule eth1 and eth0
i added
itables -I FORWARD 2 -i eth1 -o eth0 -j ACCEPT
now radio works

frankbell 11-22-2010 07:19 PM

Thanks for filling in the solution. That may help someone who comes later with a similar question.


All times are GMT -5. The time now is 10:17 PM.