Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Peter Pohlmann" <peter@e-partner.com>
To: netfilter@lists.netfilter.org
Subject: A problem - connections dies
Date: Tue, 27 May 2003 16:37:33 -0400	[thread overview]
Message-ID: <006901c324a7$17838720$3801a8c0@Peters> (raw)

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

Hello list,

I have a problem with my masquerading. 
Can someone supply me a basic configuration. I want to have the private network
open for everything. 

The current rules are below. Works for pop ,http etc. But ftp is not proper and connecting to an outside 
smtp server is a problem too. I can send very small emails but if some larger email or attachment it stops after transferring some kbs.  What am I missing here ?  The server is redhat 9 pppoe to the dsl modem.

#!/bin/sh

modprobe ip_conntrack_ftp
modprobe iptable_nat
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

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

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

Thank you in advance,
Peter




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

                 reply	other threads:[~2003-05-27 20:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='006901c324a7$17838720$3801a8c0@Peters' \
    --to=peter@e-partner.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox