Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Davide" <daveriboldi@infinito.it>
To: Mohammad Shakir <shakirz1@hotmail.com>, netfilter@lists.samba.org
Subject: Re: Need Help
Date: Mon, 30 Sep 2002 00:26:12 +0200	[thread overview]
Message-ID: <002601c26807$3c41cc00$5120a8c0@mmx> (raw)
In-Reply-To: F270kuutSgcOrBLSAQV00000096@hotmail.com

[-- Attachment #1: Type: text/plain, Size: 1590 bytes --]

hello,
   this is the iptables version

/sbin/iptables -F 
/sbin/iptables -t nat -F 
 
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -P FORWARD ACCEPT
/sbin/iptables -P OUTPUT ACCEPT

echo "1" > /proc/sys/net/ipv4/ip_forward

# for trasparent proxy
/sbin/iptables -t nat -A PREROUTING -p tcp -s 0.0.0.0/0 --dport 80 -j REDIRECT --to-ports 8080
# for direct connection excluding HTTP
/sbin/iptables -A FORWARD -p tcp -s 0.0.0.0/0 --dport 80 -j DROP

 
Davide



  ----- Original Message ----- 
  From: Mohammad Shakir 
  To: netfilter@lists.samba.org 
  Sent: Friday, September 27, 2002 1:08 PM
  Subject: Need Help


  Dear Russell,

  I have this setup in ipchains and now I want to convert in iptables. plz help me. 

  /sbin/ipchains  -F forward   
  /sbin/ipchains  -F input     
  /sbin/ipchains  -F output    

  /sbin/ipchains  -P forward   ACCEPT
  /sbin/ipchains  -P input     ACCEPT
  /sbin/ipchains  -P output    ACCEPT

  echo "1" > /proc/sys/net/ipv4/ip_forward

  # for transparent proxy
  /sbin/ipchains -A input -j REDIRECT 8080 -p tcp -s 0.0.0.0/0 -d 0.0.0.0/0 80
  # for direct connection excluding HTTP
  /sbin/ipchains  -A forward -j -p all -s 0.0.0.0/0 -d 0.0.0.0/0

  It was my old setup in RedHat Linux 7.0Rel.

  Now I have installed new verions of RedHat Linux 7.2, with Kernel 2.4.7-10 and iptables version 1.2.3.


  thanks in advance 

  shakir 



------------------------------------------------------------------------------
  Join the world's largest e-mail service with MSN Hotmail. Click Here


[-- Attachment #2: Type: text/html, Size: 4200 bytes --]

  reply	other threads:[~2002-09-29 22:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-27 11:08 Need Help Mohammad Shakir
2002-09-29 22:26 ` Davide [this message]
2002-09-29 22:40   ` Antony Stone
  -- strict thread matches above, loose matches on Subject: below --
2003-04-29 10:21 need help Karthik RC
2003-04-29  6:43 ` hare ram
2003-04-29  7:35 ` Julius Wijaya
2003-04-29  9:27 ` Maciej Soltysiak
2004-04-16 18:28 Matt Robineau
2004-04-16 19:26 ` Antony Stone
2004-04-16 19:17 Khanh Tran
2021-10-26  4:53 Need help Brad Knorr
2021-10-26  7:14 ` Daniel

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='002601c26807$3c41cc00$5120a8c0@mmx' \
    --to=daveriboldi@infinito.it \
    --cc=netfilter@lists.samba.org \
    --cc=shakirz1@hotmail.com \
    /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