1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

iptables help - OpenSuse 11.3

Discussion in 'Linux and Unix' started by Damonc, Jan 5, 2011.

Thread Status:
Not open for further replies.
  1. Damonc

    Damonc Thread Starter

    Joined:
    May 9, 2001
    Messages:
    655
    First Name:
    Damon
    Hi.. wondering if someone can give me a hand.. I'm almost at the point of pulling my hair out..


    I've got a linux box running opensuse 11.3 acting as a transparent proxy/dhcp server.. http access is all good. Now I know that you can't route https traffic through the proxy, but what I've been trying to do is just pass any traffic with a destination port of 443 straight on to the modem.. but no luck.

    This is what my iptables file looks like at the moment..

    Code:
    # Generated by iptables-save v1.4.4 on Wed Jan  5 22:21:19 2011
    *filter
    :INPUT ACCEPT [904:194295]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [943:218361]
    -A FORWARD -s 192.168.0.0/32 -p tcp -m tcp --dport 443 -j ACCEPT
    COMMIT
    # Completed on Wed Jan  5 22:21:19 2011
    # Generated by iptables-save v1.4.4 on Wed Jan  5 22:21:19 2011
    *nat
    :PREROUTING ACCEPT [735:46204]
    :POSTROUTING ACCEPT [27:1801]
    :OUTPUT ACCEPT [27:1801]
    -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.0.254:$
    -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
    -A PREROUTING -p tcp -m tcp --dport 443 -j DNAT --to-destination 192.168.0.1:443
    COMMIT
    # Completed on Wed Jan  5 22:21:19 2011
    # Generated by iptables-save v1.4.4 on Wed Jan  5 22:21:19 2011
    *mangle
    :PREROUTING ACCEPT [1638:239479]
    :INPUT ACCEPT [904:194295]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [945:218465]
    :POSTROUTING ACCEPT [945:218465]
    COMMIT
    # Completed on Wed Jan  5 22:21:19 2011
    
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/972775

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice