how to enable voice and video chatting through squid

Discussion regarding the installation and configuration of Linux distributions.

how to enable voice and video chatting through squid

Postby smk08 » Mon Nov 17, 2008 9:07 am

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
smk08
Naik
 
Posts: 56
Joined: Fri Aug 08, 2008 1:44 pm
Location: Sheikhupura, Pakistan

Postby lambda » Mon Nov 17, 2008 12:50 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re: how to enable voice and video chatting through squid

Postby LinuxFreaK » Wed Nov 19, 2008 9:33 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re: how to enable voice and video chatting through squid

Postby kbukhari » Thu Nov 20, 2008 7:42 pm

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
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

Postby mudasir » Fri Nov 21, 2008 11:50 pm

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
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Postby lambda » Sat Nov 22, 2008 11:09 am

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby mudasir » Sat Nov 22, 2008 11:01 pm

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
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Postby lambda » Sat Nov 22, 2008 11:12 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby mudasir » Sat Nov 22, 2008 11:14 pm

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
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Postby x2oxen » Fri Nov 28, 2008 1:21 pm

i thought voice and video only use udp ports doesn't it Farrukh B?
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron