LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-23-2010, 03:11 AM   #1
crackyblue
LQ Newbie
 
Registered: Sep 2007
Posts: 25

Rep: Reputation: 15
Masqueraded network cant login on yahoo mail or any secured sites.


Hi,

I am now very confused as to why i cant login on any secured sites since my firewall is setup to masquerade technique in iptables. Of course i can browse normally to any normal http connection. I attached my firewall script for you guys to help since im out of any ideas.

Thank you.

EDIT:
I setup squid on the same box and configured browser to use that proxy. All is well, i can browse and login both normal and secured sites (ie yahoo mail)
Attached Files
File Type: txt iptables-firewall.txt (25.8 KB, 18 views)

Last edited by crackyblue; 04-23-2010 at 03:28 AM.
 
Old 04-23-2010, 07:00 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
That is some firewall script you have there!

I didn't try to analyze the whole thing, but I did notice that you have rules in the ULTRABLOCK that can specifically block --dport 443 for some IP addresses. I also noticed in the PREROUTING chain that you have a rule that does a DNAT for --dport 80 but you have the corresponding rule for --dport 443 commented out. Along with those being a possible source of the problem, I wondered if one or more of the rules that drop packets based on string matching could be a problem.

If you have not already done so, you might check your system log for DPT=443 and SPT=443 and see if you it gives a clue why such packets were dropped. It also might be worth while to look at the packet counts of your firewall rules:

Code:
iptables -nvL | less 
iptables -t nat -nvL | less 
iptables -t mangle -nvL | less
The first column will show you whether any packets had matched a particular rule. You can also use regular expressions to search for various things. For example, to search for rules with a target of DROP that had any matches, you might do the following search:

Code:
/^[[:blank:]]*[1-9].*DROP


BTW, do you really want to REJECT (rather than DROP) packets with illegal combinations of flags?
 
Old 04-23-2010, 08:11 AM   #3
SuperJediWombat!
Member
 
Registered: Apr 2009
Location: Perth, Australia
Distribution: Ubuntu/CentOS
Posts: 208

Rep: Reputation: 51
$IPT -A PREROUTING -t mangle -p tcp --sport 443 -j TOS --set-tos Maximize-Throughput
$IPT -A PREROUTING -t mangle -p tcp --dport 443 -j TOS --set-tos Maximize-Throughput

Try commenting those two lines out.

Why are all the rules in the TOS section doubled up?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Masqueraded Sendmail (8.13) not sending mail tsmeed Linux - Server 5 03-20-2009 09:22 AM
I cannot login to yahoo mail or LQ sometimes M$ISBS General 3 01-14-2008 10:21 PM
Unable to connect to secured sites. OutKaster Linux - Networking 1 07-27-2007 05:15 PM
login yahoo mail, hotmail in Redhat Firefox browser dipankar Linux - General 2 05-16-2006 10:07 AM
can not login yahoo mail, hotmail from Redhat/ Firefox browser dipankar Linux - Newbie 2 05-15-2006 11:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration