All of lore.kernel.org
 help / color / mirror / Atom feed
From: "louie miranda" <lmiranda@chikka.com>
To: netfilter@lists.netfilter.org
Subject: Re: portfw on iptables 2.4 kernel problem.
Date: Thu, 12 Dec 2002 11:11:41 +0800	[thread overview]
Message-ID: <00f301c2a18c$373cf3b0$0b00000a@nocpc3> (raw)
In-Reply-To: 3DF720D9.7030501@istitutocolli.org

Thanks for those people who replied, But still i can't get it to work.
Ill be posting my rule set here.

=======================================
panic:/# iptables -nL --line-num
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination

Chain FORWARD (policy DROP)
num  target     prot opt source               destination
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0          state
RELATED,ESTABLISHED
2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
3    LOG        all  --  0.0.0.0/0            0.0.0.0/0          LOG flags 0
level 4

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination
panic:/#
=======================================
panic:/# iptables -nL --line-num -t nat
Chain PREROUTING (policy ACCEPT)
num  target     prot opt source               destination
1    REDIRECT   tcp  --  0.0.0.0/0            0.0.0.0/0          tcp dpt:80
redir ports 3128

Chain POSTROUTING (policy ACCEPT)
num  target     prot opt source               destination
1    MASQUERADE  all  --  0.0.0.0/0            0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination
panic:/#
=======================================

My rule set is just a simple masq w/ port redirection internally, catching
all port 80 request
and redirect it to my squid on port 3128


I tried the simple rule set that Joel Newkirk, Andrea Rossato and all the
people who have
helped me on my problem but still It does not work, I actually set all the
IPTABLES/NETFILTER
options on my kernel and add "1" on /proc/sys/net/ipv4/ip_forward. I
actually search and
search google.com for my similar problem and tried it all, I had no error's
or such all is working
i think. It just does not connect over to my granted port. Ill try any port
even port 80 or port 139
on my firewall just get this forwarding to work.

Well, thanks again. I hope what i have posted here "my rule set" will give
me such nice answers
to resolved my probem, And ill cont. reading and reading any docs i can find
on the internet.



--
thanks,
louie miranda




  reply	other threads:[~2002-12-12  3:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10  8:56 portfw on iptables 2.4 kernel problem louie miranda
2002-12-10  9:01 ` Raymond Leach
2002-12-10  9:11   ` louie miranda
2002-12-10  9:01 ` Paulo Andre
2002-12-10  9:12   ` louie miranda
2002-12-11 11:26 ` Andrea Rossato
2002-12-12  3:11   ` louie miranda [this message]
     [not found] <FD8F124A387AD6119F7900A0D218B321561982@hslex01.hslbz.local>
2002-12-10  9:43 ` Rob Sterenborg
2002-12-10 11:00   ` Raymond Leach
2002-12-10 11:22     ` Jozsef Kadlecsik
2002-12-10 11:32       ` Raymond Leach
2002-12-10 11:52         ` Jozsef Kadlecsik
2002-12-10 12:12           ` Raymond Leach
2002-12-11  6:08       ` louie miranda
2002-12-11  6:20         ` Raymond Leach
  -- strict thread matches above, loose matches on Subject: below --
2002-12-11  7:32 Reckhard, Tobias
2002-12-11  8:05 ` Joel Newkirk
2002-12-11  9:00 Reckhard, Tobias
2002-12-11 14:25 ` Joel Newkirk
2002-12-12  7:31 Reckhard, Tobias
2002-12-12  7:33 Reckhard, Tobias
2002-12-12  8:09 Reckhard, Tobias
     [not found] <96C102324EF9D411A49500306E06C8D1021AE462@eketsv02.cubis.de >
2002-12-12  8:51 ` Rasmus Reinholdt Nielsen
2002-12-12 14:25   ` Joel Newkirk

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='00f301c2a18c$373cf3b0$0b00000a@nocpc3' \
    --to=lmiranda@chikka.com \
    --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.