All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@lists.netfilter.org>
Cc: gabrix@gabrix.ath.cx
Subject: Re: change from eth0 ---- router interface , to ppp0 --- ethernet modem interface
Date: Wed, 15 Aug 2007 09:58:22 -0500	[thread overview]
Message-ID: <46C3148E.6090103@riverviewtech.net> (raw)
In-Reply-To: <46C21167.8050005@gabrix.ath.cx>

On 08/14/07 15:32, gabrix wrote:
> ARGO="`ifconfig ppp0 | grep inet | cut -d : -f 2 | cut -d \  -f 1`"
> $IPT -t nat -A PREROUTING -p tcp -i $IF0 -d $ARGO --dport 25 -j DNAT 
> --to $MAIL:25
> $IPT -A FORWARD -i $IF0 -o $IF1 -p tcp --dport 25 -d $MAIL -j ACCEPT
> 
> I have problems with http e https where i'm using this code:
> 
> IF0=ppp0
> IF1=eth1
> $IPT -t nat -A PREROUTING -p tcp -i $IF0 -d $ARGO --dport 80 -j DNAT 
> --to $WWW:80
> $IPT -t nat -A PREROUTING -p tcp -i $IF0 -d $ARGO --dport 443 -j DNAT 
> --to $WWW:443
> $IPT -A FORWARD -i $IF0 -o $IF1 -p tcp --dport 80 -d $WWW -j ACCEPT
> $IPT -A FORWARD -i $IF0 -o $IF1 -p tcp --dport 443 -d $WWW -j ACCEPT

I do not see any thing wrong with the IPTables rules that you have
presented.  However apparently something else is preventing things from
working correctly.

> I'm using apache2 with mod_rewrite rewriting connecions from port 80 
> to 443.  What's wrong with my configuration ? I will try to remove 
> that -d $ARGO like this:

I am curious if you see any traffic comming in to your web server at
all, be it via netstat, TCPDump, logs, etc.

I also wonder what else may be in your IPTables rules that is not
presented that may be causing problems.  Can / will you do an
iptables-save and show us the output of your entire IPTables configuration?

> And invite you to give it a try http://www.gabrix.ath.cx let's see 
> how it goes.
> 
> Thanks for the attenction !

*nod*



Grant. . . .


      reply	other threads:[~2007-08-15 14:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-14 20:32 change from eth0 ---- router interface , to ppp0 --- ethernet modem interface gabrix
2007-08-15 14:58 ` Grant Taylor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46C3148E.6090103@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=gabrix@gabrix.ath.cx \
    --cc=gtaylor+reply@riverviewtech.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.