Page 1 of 1

how to enable voice and video chatting through squid

Posted: Mon Nov 17, 2008 9:07 am
by smk08
Asslamu Alaikum

Friends please guide me how to allow user for voice and video chatting through squid server.


Thanks & Regards.

Posted: Mon Nov 17, 2008 12:50 pm
by lambda
figure out which ports are used by the video/voice chat software, and then create iptable nat rules to allow their traffic through.

Re: how to enable voice and video chatting through squid

Posted: Wed Nov 19, 2008 9:33 am
by LinuxFreaK
Dear smk08,
Salam,

smk08 wrote:Friends please guide me how to allow user for voice and video chatting through squid server.


I think MASQUERADING your local clients traffic to your backbone will solve issue.

Best Regards.

Re: how to enable voice and video chatting through squid

Posted: Thu Nov 20, 2008 7:42 pm
by kbukhari
smk08 wrote:Asslamu Alaikum

Friends please guide me how to allow user for voice and video chatting through squid server.


Thanks & Regards.


SQUID is an http proxy and has nothing to do with chat, voice or video.

you may use routing or nating for chat/voice/video working.

Posted: Fri Nov 21, 2008 11:50 pm
by mudasir
AOA,

you can use a simple rule that will allow your whole network to you VOICE/VIDEO feature
.

Code: Select all

### Interface connected to INTERNET ###
INTERNET=eth0

/sbin/iptables -t nat -A POSTROUTING -o $INTERNET -j MASQUERADE


this single rule will work as it always does.

Posted: Sat Nov 22, 2008 11:09 am
by lambda
yeah, but it'll let a lot more traffic through than just voice/video.

Posted: Sat Nov 22, 2008 11:01 pm
by mudasir
AOA,

Dear Mr. Lambda,

I know this single rule will allow allot of extra traffic. For particular applications you should know on which they are working and once you know their respective ports the rule is simple.

Code: Select all

ipt=/sbin/iptables
internet=eth0
masq-ports="1080 5010 5001"

for i in $masq-ports
do
$ipt -t nat -A POSTROUTING -o $internet -p tcp --dport $i -j MASQUERADE
done


However some or many applications use UDP also so just copy the same for udp.

If there are any mistake in the the format please let me know as its been very long since i have written any script or any iptables rule.

Posted: Sat Nov 22, 2008 11:12 pm
by lambda
For particular applications you should know on which they are working and once you know their respective ports the rule is simple.
which is what i wrote here.
If there are any mistake in the the format please let me know as its been very long since i have written any script or any iptables rule.
use whitespace to make your code more readable. use capitalized variables. give me all your money. don't use hyphens in variable names.

Code: Select all

#!/bin/sh

IPT=/sbin/iptables
INTERNET=eth0
MASQPORTS="1080 5010 5001"

for i in $MASQPORTS
do
  $IPT -t nat -A POSTROUTING -o $INTERNET -p tcp --dport $i -j MASQUERADE
done

Posted: Sat Nov 22, 2008 11:14 pm
by mudasir
AOA,

Thanks allot for correcting me and letting me know some points.

Posted: Fri Nov 28, 2008 1:21 pm
by x2oxen
i thought voice and video only use udp ports doesn't it Farrukh B?