Port Problem In Squid

General discussion about PLUC and Linux in Pakistan.
Post Reply
sasif
Cadet
Posts: 14
Joined: Wed Feb 09, 2005 12:21 am
Location: Karachi
Contact:

Port Problem In Squid

Post by sasif »

Assalam-o-Alikum All of Linux Memebers i hope everyone is fine :)
i have installed Linux Enterprise 3 and squid 2.5 and 256 Radio Link direct connetcted to interface eth1.My prblem is that we are using kpt (Karachi Port Trust) Application and this applicaton use public ip (66.206.22.18) and port 1433.
my question is that how can i alllow this ip and port in linux.
i have alredy try iptables but not success.
kindly help out.
Syed Asif Mansoor
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

where u want to allow these Ips
on ur linux Box or for clinets
if u want to allow them on clinets the tell me are us using private Ips ot using public ips on clinet side
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear sasif,
Salam,

Use this rule.

# iptables -t nat -A POSTROUTING -s 66.206.22.1 -p tcp --dport 1433 -j MASQUERADE

Best Regards.
Farrukh Ahmed
Post Reply