Saratov Linux User Group
 help / color / mirror / Atom feed
From: Sicness <ctolbhuk@gmail.com>
To: Saratov Linux User Group Maillist <sarlug@lists.lug.ru>
Subject: [Sarlug] Широковещательный UDP в питон denied
Date: Sat, 26 Sep 2009 10:26:40 +0400
Message-ID: <4ABDB420.6060600@gmail.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Здравствуйте. Пришу банальную программку на Python, которая будет
рассылать по всей сети UDP пакеты для всех и ловить их соответственно.
Всмысле прослушиваю, допустим 0.0.0.0:1234 и отслываю на 192.168.0.255
где сеть 192.168.0.0/24
При обычном выполнении питон выдает ошибку
Traceback (most recent call last):
  File "/home/sicness/NetBeansProjects/donkeysaid/src/donkeysaid.py",
line 25, in <module>
    sock.sendto(data,(SEND_TO,PORT))
socket.error: [Errno 13] Permission denied
То есть он не может слать широковещательные пакеты (видимо для UNIX это
стандарт). Можно ли как-нибудь все-таки отсылать их или достигать
аналогичного результата не шля на все 254 адерса и не перенастраивая
что-то в настройках ОС каждой машины и не запуская от uid=0? Ибо это не
безопасно.
За ранее благодарен.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iJwEAQECAAYFAkq9tBcACgkQ5jgWcLqRXleuWgP/dUMx0W/79/8VBD+57V7LP37c
w2sCr/mjoeNET7zuTfA9iBTiZSmafW6jQei+NXq3ty74KUb4o1EVBwR5frafts/A
MuQryqvYU9OoxoygPaGarlHFdK8++5TGWq6rGegLtMgCgSc8ZpBGndYuHa6iUskd
3yui7eXB9hi31lZ57Sw=
=TuuD
-----END PGP SIGNATURE-----


             reply	other threads:[~2009-09-26  6:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-26  6:26 Sicness [this message]
2009-09-26  7:47 ` Яков Попов
2009-09-26  7:50   ` Sicness

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=4ABDB420.6060600@gmail.com \
    --to=ctolbhuk@gmail.com \
    --cc=sarlug@lists.lug.ru \
    /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

Saratov Linux User Group

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \
		sarlug@lists.lug.ru sarlug@lug.ru
	public-inbox-index sarlug

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sarlug


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git