From: "Charles Romestant" <cromestant@gmail.com>
To: Grant Taylor <gtaylor@riverviewtech.net>
Cc: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: Port Forwarding .
Date: Wed, 9 Jul 2008 15:10:37 +1930 [thread overview]
Message-ID: <5078d3df0807081240m24ccbf81s9502fb078a7187cf@mail.gmail.com> (raw)
In-Reply-To: <4873C1E0.2010609@riverviewtech.net>
ok it was set to 0, but changing it did not do anything,
here is the iptables-save output
root@charz-server:/home/charz# iptables-save
# Generated by iptables-save v1.3.6 on Tue Jul 8 15:09:21 2008
*nat
:PREROUTING ACCEPT [1273:171111]
:POSTROUTING ACCEPT [37:5861]
:OUTPUT ACCEPT [41:6213]
-A PREROUTING -d 10.0.1.192 -i eth0 -p tcp -m tcp --dport 80 -j DNAT
--to-destination 10.0.10.1
-A POSTROUTING -s 10.0.10.1 -o eth0 -p tcp -m tcp --sport 80 -j SNAT
--to-source 10.0.1.192
COMMIT
# Completed on Tue Jul 8 15:09:21 2008
# Generated by iptables-save v1.3.6 on Tue Jul 8 15:09:21 2008
*filter
:INPUT ACCEPT [7428:682763]
:FORWARD ACCEPT [1:48]
:OUTPUT ACCEPT [2978:507120]
:fail2ban-ssh - [0:0]
:spa - [0:0]
-A FORWARD -d 10.0.10.1 -i eth0 -o eth1 -p tcp -m tcp --dport 80 -j ACCEPT
-A FORWARD -s 10.0.10.1 -i eth1 -o eth0 -p tcp -m tcp --sport 80 -j ACCEPT
COMMIT
# Completed on Tue Jul 8 15:09:21 2008
Again , thank you for your help
On Wed, Jul 9, 2008 at 3:07 PM, Grant Taylor <gtaylor@riverviewtech.net> wrote:
> On 07/08/08 14:20, Charles Romestant wrote:
>>
>> ok, flushed all tables, and all chains, changed back the policy to accept,
>> and then reentered the rules you sent me before Grant. And still no dice.
>
> *nod*
>
> <snip>
>
>> still the prerouting seems to be matching but the others stay at 0.
>
> Agreed.
>
>> At the moment i m still reading documentation to see if i can spot the
>> mistake, thanks again for the help.
>>
>> Why would the prerouting accept and not continue to postrouting?
>
> If ip forwarding is not enabled, things may not do what they need to. What
> is your /proc/sys/net/ipv4/ip_forward file set to? Try setting it to 1.
>
> echo "1" > /proc/sys/net/ipv4/ip_forward
>
> Also, can I get a current iptables-save output?
>
>
>
> Grant. . . .
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Charz
next prev parent reply other threads:[~2008-07-08 19:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-07 21:49 Port Forwarding Charles Romestant
2008-07-07 22:10 ` Grant Taylor
2008-07-07 22:32 ` Charles Romestant
2008-07-07 22:33 ` Charles Romestant
2008-07-07 23:10 ` Charles Romestant
2008-07-07 23:58 ` Charles Romestant
2008-07-08 2:23 ` Grant Taylor
2008-07-08 19:20 ` Charles Romestant
2008-07-08 19:37 ` Grant Taylor
2008-07-08 19:40 ` Charles Romestant [this message]
2008-07-08 19:50 ` Grant Taylor
2008-07-08 19:54 ` Charles Romestant
2008-07-08 20:11 ` Charles Romestant
2008-07-08 20:21 ` Grant Taylor
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=5078d3df0807081240m24ccbf81s9502fb078a7187cf@mail.gmail.com \
--to=cromestant@gmail.com \
--cc=gtaylor@riverviewtech.net \
--cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox