Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Christian H. Kuhn" <qno-netfilter@qno.de>
To: Netfilter Mailing List <netfilter@lists.samba.org>
Subject: H.323 masquerading
Date: Fri, 11 Oct 2002 18:12:34 +0200	[thread overview]
Message-ID: <20021011161234.GR10468@qno.de> (raw)

Hi,

Problem: small network, Debian sarge router, kernel 2.4.19, iptables. Two clients,
one Debian sid or Win98SE, the other Win2k. NetMeeting on both Win
clients.

On http://www.gnomemeeting.org/faq.php i found a link to
http://roeder.goe.net/~koepi/newnat.html. I downloaded the patch, the
kernel 2.4.19 from kernel.org and iptables-1.2.7a. I unpacked all,
patched and configured the kernel, compiled and installed iptables
(setting paths so that the debian files are overwritten), compiled and
installed the kernel. After rebooting, everything seems to be fine.

Masquerading is set up as follows:

FWVER=0.01
echo -e "\n\nLoading simple rc.firewall version $FWVER..\n"
IPTABLES=/sbin/iptables
EXTIF="ppp0"
INTIF="eth1"
echo "   External Interface:  $EXTIF"
echo "   Internal Interface:  $INTIF"
echo -en "   loading modules: "
echo "  - Verifying that all kernel modules are ok"
/sbin/depmod -a
echo -en "ip_tables, "
/sbin/insmod ip_tables
echo -en "ip_conntrack, "
/sbin/insmod ip_conntrack
echo -en "ip_conntrack_ftp, "
/sbin/insmod ip_conntrack_ftp
echo -en "ip_conntrack_irc, "
/sbin/insmod ip_conntrack_irc
echo -en "ip_conntrack_h323, "
/sbin/insmod ip_conntrack_h323
echo -en "iptable_nat, "
/sbin/insmod iptable_nat
echo -en "ip_nat_ftp, "
/sbin/insmod ip_nat_ftp
echo -en "ip_nat_h323, "
/sbin/insmod ip_nat_h323
echo ".  Done loading modules."
echo "   enabling forwarding.."
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "   enabling DynamicAddr.."
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
echo "   clearing any existing rules and setting default policy.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
echo "   FWD: Allow all connections OUT and only existing and related ones IN"
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG
echo "   Enabling SNAT (MASQUERADE) functionality on $EXTIF"
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
echo -e "\nrc.firewall-2.4 v$FWVER done.\n"

http, ftp, icq, ... are working. When trying NetMeeting, i can log
onto an ils server. When connecting to other people, i see in
/var/log/syslog:

Oct 11 17:12:40 ns kernel: ASSERT ip_conntrack_core.c:94 &ip_conntrack_lock_R71150de5 readlocked
Oct 11 17:12:40 ns kernel: ASSERT ip_nat_core.c:739 &ip_conntrack_lock not readlocked
Oct 11 17:12:40 ns kernel: ASSERT ip_nat_core.c:739 &ip_conntrack_lock not readlocked
Oct 11 17:12:40 ns kernel: ASSERT: ip_nat_core.c:839 &ip_conntrack_lock not readlocked

repeated ad infinitum. I can connect and chat, but no
video/audio. Other people cannot call me.

Any hints?

Kind regards,
Chris
-- 
http://www.qno.de
ICQ 57840861


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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11 16:12 Christian H. Kuhn [this message]
     [not found] ` <20021013094041.17979.qmail@web40306.mail.yahoo.com>
2002-10-13 15:59   ` H.323 masquerading Christian H. Kuhn
  -- strict thread matches above, loose matches on Subject: below --
2002-10-11 15:29 H.323 Masquerading Christian H. Kuhn
2002-10-15  9:02 ` Alasdair Ramsay
2002-10-16  8:01   ` Carles Xavier Munyoz Baldó

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=20021011161234.GR10468@qno.de \
    --to=qno-netfilter@qno.de \
    --cc=netfilter@lists.samba.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