how to enable voice and video chatting through squid

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
smk08
Naik
Posts: 56
Joined: Fri Aug 08, 2008 1:44 pm
Location: Sheikhupura, Pakistan

how to enable voice and video chatting through squid

Post by smk08 »

Asslamu Alaikum

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


Thanks & Regards.
Shahid Mahmood
0321-4538113
i am crazy to learn linux
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post 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.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: how to enable voice and video chatting through squid

Post 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.
Farrukh Ahmed
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Re: how to enable voice and video chatting through squid

Post 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.
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post 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.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

yeah, but it'll let a lot more traffic through than just voice/video.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post 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.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post 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 
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

AOA,

Thanks allot for correcting me and letting me know some points.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

i thought voice and video only use udp ports doesn't it Farrukh B?
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
Post Reply