All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Henrik Ostergaard Madsen" <Henrik@ostergaard.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Multicast only working in promiscuous mode
Date: Fri, 03 Mar 2006 16:55:24 +0000	[thread overview]
Message-ID: <4408830C.24632.1D2751@localhost> (raw)

Hi,

I am trying to set up a uPnP server on a Linux box (Debian Sarge Stable kernel 2.6.8). uPnP 
works using multicast packages for locating servers.

This does however seem to fail unless I set the relevant NIC in promiscuous mode. If I do so, 
it works well.

I have added

ip route add 224.0.0.0/4 dev eth0

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

and the kernel is set up to enable multicast (and routing), extract from the .config of the 
kernel:


#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
# CONFIG_NETLINK_DEV is not set
CONFIG_UNIX=y
CONFIG_NET_KEY=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_FWMARK=y
CONFIG_IP_ROUTE_NAT=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_TOS=y
CONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=y
CONFIG_NET_IPGRE=y
CONFIG_NET_IPGRE_BROADCAST=y
CONFIG_IP_MROUTE=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
# CONFIG_ARPD is not set
CONFIG_SYN_COOKIES=y
CONFIG_INET_AH=y
CONFIG_INET_ESP=y
CONFIG_INET_IPCOMP=y
 
The server is also used as a firewall using iptables and iproute2 and thus also serves as a 
gateway for the uPnP clients.

Something is missing, and I do not want the NIC to be in promiscuous mode permanently if it 
can be avioded. What do I do wrong? 

Regards

Henrik
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2006-03-03 16:55 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=4408830C.24632.1D2751@localhost \
    --to=henrik@ostergaard.net \
    --cc=lartc@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 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.