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 08-07-2008, 06:59 AM   #1
imo_lv
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
iptables ssl (https) problem


Hello all.
I have one problem.
I set up iptables
eth0 = wan
eth1 = lan
Quote:
# Generated by iptables-save v1.3.6 on Wed Aug 6 12:09:55 2008
*raw
:PREROUTING ACCEPT [18213191:25442966124] :OUTPUT ACCEPT [9467742:611496802]
COMMIT
# Completed on Wed Aug 6 12:09:55 2008
# Generated by iptables-save v1.3.6 on Wed Aug 6 12:09:55 2008
*mangle
:PREROUTING ACCEPT [18213261:25443065732]
:INPUT ACCEPT [18119575:25413626148]
:FORWARD ACCEPT [93679:29429796]
:OUTPUT ACCEPT [10811351:690771701]
:POSTROUTING ACCEPT [9561634:640972690]
COMMIT
# Completed on Wed Aug 6 12:09:55 2008
# Generated by iptables-save v1.3.6 on Wed Aug 6 12:09:55 2008
*nat
:PREROUTING ACCEPT [8186:854674]
:POSTROUTING ACCEPT [477:63450]
:OUTPUT ACCEPT [2315:187997]
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Wed Aug 6 12:09:55 2008
# Generated by iptables-save v1.3.6 on Wed Aug 6 12:09:55 2008
*filter
:INPUT DROP [607:55082]
:FORWARD ACCEPT [93300:29398254]
:OUTPUT ACCEPT [8977470:584626333]
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth1 -j ACCEPT
-A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 81 -j ACCEPT
-A INPUT -p udp -m udp --sport 67:68 --dport 67:68 -j ACCEPT
COMMIT
# Completed on Wed Aug 6 12:09:55 2008
and squid as transparent proxy

All works fine but pages with ssl doesnt opening.
and email like gmail.com and mail with ssl or tsl (configured under Thunderbird).
skype is working and all other. i can`t connect to https (bank pages and other who uses ssl).

but when i set mozilla to use my proxy then https works.
but if i am connecting to https site from router with lynx then page can open.

router and squid is on same pc.
samba too.

iptables is saved from my old arch linux.

thanks.


EDIT:
when i am connecting to my production server via SSH, when enter command 'ps aux', in console prints some lines and putty gets connection timeout...

Last edited by imo_lv; 08-07-2008 at 07:18 AM.
 
Old 08-07-2008, 07:47 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you enabled forwarding (what's the value of /proc/sys/net/ipv4/ip_forward)? I don't see any reference to port 443 in any case, so and https requests hitting this box have nowhere to go.

Ca nyou post

iptables -L

Last edited by billymayday; 08-07-2008 at 07:53 AM.
 
Old 08-07-2008, 07:54 AM   #3
imo_lv
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
forward is enabled.
Quote:
cat /proc/sys/net/ipv4/ip_forward
1
 
Old 08-07-2008, 12:24 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Moved to Networking.
 
Old 08-07-2008, 03:43 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I don't know if you saw my edit, but can you post

iptables -L
 
Old 08-08-2008, 01:06 AM   #6
imo_lv
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
i already set up my old system back.
 
  


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
iptables masquarading problem with https grayFalcon Linux - Networking 1 12-09-2005 08:38 AM
https SSL Certificate Expired lothario Linux - Security 1 01-19-2005 09:42 PM
Apache2, SSL, HTTPS... KneeLess Debian 3 09-02-2004 09:44 PM
Problem with https connections - iptables Suse9.0 mschna Linux - Networking 2 02-12-2004 01:54 AM
Mozilla 1.4 HTTPS SSL Tunnel Proxy Problem Ynog Linux - Software 0 07-30-2003 09:19 PM

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

All times are GMT -5. The time now is 11:39 AM.

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