Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-03-2006, 04:12 PM
|
#1
|
|
Member
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34
Rep:
|
Yahoo messenger with no proxy behind Squid
Please help.
I've configure Squid and Firewall on same machine. eth0 is my internet interface and eth1 is my Local network interface. Problem is that when I try to connect yahoo messenger with No proxies then it never sign In. And when I define my proxy it never support voice Video chat.
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080
Is that problem due to I redirect only port 80 traffic to 8080?
Will it solve when I use following configuration?
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80,5050,11999,5000,5001,5100 -j REDIRECT --to-port 8080
If it is okay then what setting I will use for my messenger proxy or No proxy.
Please help me.
as soon as possible
|
|
|
|
10-03-2006, 09:33 PM
|
#2
|
|
Member
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34
Original Poster
Rep:
|
Quote:
|
Originally Posted by Farrukh Fida
Please help.
I've configure Squid and Firewall on same machine. eth0 is my internet interface and eth1 is my Local network interface. Problem is that when I try to connect yahoo messenger with No proxies then it never sign In. And when I define my proxy it never support voice Video chat.
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080
Is that problem due to I redirect only port 80 traffic to 8080?
Will it solve when I use following configuration?
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80,5050,11999,5000,5001,5100 -j REDIRECT --to-port 8080
If it is okay then what setting I will use for my messenger proxy or No proxy.
Please help me.
as soon as possible
|
Please help me I am trapped, I've to done this but here I need the help of you GURUs.
THANKS
|
|
|
|
10-05-2006, 11:37 PM
|
#3
|
|
Member
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157
Rep:
|
Hi Farrukh,
try this:
Code:
iptables -t nat -A POSTROUTING -i eth1 -p tcp -m multiport --dport 5050,11999,5000,5001,5100 -j SNAT --to-source xxx.xxx.xxx.xxx
Pls note that the connection is NAT'ed via ports as above.
|
|
|
|
10-06-2006, 12:37 AM
|
#4
|
|
Member
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34
Original Poster
Rep:
|
Dear zamri,
what address I should use for SNAT in masquerading it sets auto matically my internet nic address in my case is 192.168.0.6.
Should I use this or not?
Thanks for your reply its a new hope when I lose all my hope..
Thanks once again...and waiting for your response.
|
|
|
|
10-06-2006, 01:03 AM
|
#5
|
|
Member
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59
Rep:
|
try this
Hi Farukh,
iptables -A FORWARD -i eth1 -p tcp -m multiport --dports 5050,11999,5000,5001,5100 -j ACCEPT
|
|
|
|
10-06-2006, 01:12 AM
|
#6
|
|
Member
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34
Original Poster
Rep:
|
Quote:
|
Originally Posted by hhvv
Hi Farukh,
iptables -A FORWARD -i eth1 -p tcp -m multiport --dports 5050,11999,5000,5001,5100 -j ACCEPT
|
Dear I've used above(your code) configuration yesterday but no success.
|
|
|
|
10-06-2006, 01:32 AM
|
#7
|
|
Member
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59
Rep:
|
Okay
Farukh ,
Can you describe ur N/W structure and also provide the /etc/sysconfig/iptables file
|
|
|
|
10-06-2006, 01:33 AM
|
#8
|
|
Member
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59
Rep:
|
Ports 1024:65535
try this one also
-A INPUT -s 0.0.0.0/0 -p tcp --dport 1024:65535 -j ACCEPT
-A INPUT -s 0.0.0.0/0 -p udp --dport 1024:65535 -j ACCEPT
|
|
|
|
10-06-2006, 02:07 AM
|
#9
|
|
Member
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34
Original Poster
Rep:
|
My problem is that I want to enable voice chat in yahoo, when i try to connect my client behind squid to yahoo messenger with following options.
1) No porxies------------->never connect(no error shown only trying for a while and then no result)
2)firewall with no proxy------------------->connected but voice chat is not enable(no option for voice chat)
3)use proxies---------------------->connected but again voice chat is not enable(no option for voice)
4)No network detection----------->again failed to connect(no fate)
I've squid and firewall running on same machine
eth1 is my LAN side and eth0 is my Internet NIC.
configurations are
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
-j REDIRECT --to-port 8080
iptables -A INPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -i eth1 -p tcp \
--dport 8080
iptables -A OUTPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -o eth0 -p tcp \
--dport 80
iptables -A INPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -i eth0 -p tcp \
--sport 80
iptables -A OUTPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -o eth1 -p tcp \
--sport 80
and in the end I am using MASQUERADING which solve my msn problem but yahoo problem still presists.
eth1 = is my LAN ip = 192.168.11.0
eht0 = is my Internet = 192.168.0.6
plz guide me thanks
Regards,
FArrukh
|
|
|
|
10-06-2006, 02:09 AM
|
#10
|
|
Member
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34
Original Poster
Rep:
|
all these command I've written in /etc/rc.local
like
/sbin/iptables -A
plz help me
Regards,
Farrukh.
|
|
|
|
10-06-2006, 09:32 AM
|
#11
|
|
Member
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59
Rep:
|
Have youtried this
try this one also
-A INPUT -s 0.0.0.0/0 -p tcp -i eth0 --dport 1024:65535 -j ACCEPT
-A INPUT -s 0.0.0.0/0 -p udp -i eth0 --dport 1024:65535 -j ACCEPT
|
|
|
|
10-07-2006, 12:43 AM
|
#12
|
|
Member
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34
Original Poster
Rep:
|
Dear still no fate is Zamri idea is good ?
he sent
iptables -t nat -A POSTROUTING -i eth1 -p tcp -m multiport --dport 5050,11999,5000,5001,5100 -j SNAT --to-source xxx.xxx.xxx.xxx (192.168.0.6) in my case?
plz guide me
thanks for taking care of me
regards,
Farrukh
|
|
|
|
10-08-2006, 03:22 AM
|
#13
|
|
Member
Registered: May 2006
Location: India
Distribution: RHEL,CentOS,BSD,Ubuntu
Posts: 59
Rep:
|
Pls append these
-A INPUT -s 0.0.0.0/0 -p tcp -i eth0 --dport 1024:65535 -j ACCEPT
-A INPUT -s 0.0.0.0/0 -p udp -i eth0 --dport 1024:65535 -j ACCEPT
-A FORWARD -p tcp -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
|
|
|
|
10-08-2006, 08:42 AM
|
#14
|
|
Member
Registered: Jun 2006
Location: Dubai
Distribution: Cent OS
Posts: 34
Original Poster
Rep:
|
Thanks for this but still no luck. I don't know where is the problem... Masquerading is also working well because if I never Masquerade then i am unable to connect MSN messenger...
What to do I try many many method but no luck....
Well thanks for your help if U have any idea then plz update me I am looking forward for ur response
Thanks,
Farrukh
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:11 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|