Re: [Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread FUJITA Tomonori
On Sun, 7 Sep 2014 20:58:35 +0800 Che-Wei Lin wrote: > Remove the wrong way to get IP and bind with it. > Binding with '0.0.0.0' and listen on all host. > > Update and fix typos in the snort_integrate.rst document. > > Fix the problem about pigrelay reconnect to ryu will not be accepted. > >

[Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread Che-Wei Lin
Remove the wrong way to get IP and bind with it. Binding with '0.0.0.0' and listen on all host. Update and fix typos in the snort_integrate.rst document. Fix the problem about pigrelay reconnect to ryu will not be accepted. Pigrelay is a program running on Snort that receive Snort alert from UNI

[Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread Che-Wei Lin
Fix the problem about getting host ip may get 127.0.0.1. On Ubuntu Python's stdlib socket.gethostbyname() returns 127.0.0.1 for some reason. Fix the problem about pigrelay reconnect to ryu will not be accepted. Pigrelay is a program that receive Snort alert from UNIX socket and send to network s

Re: [Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread Che-Wei Lin
Hi, I see. Binding on 0.0.0.0:port I didn't do this on the last patch. I used the wrong way to get IP address and bind it. I'll correct it and send the patch again. Thank you Che-Wei Lin , John Lin Institute of Communication Engineering, National Tsing Hua Univers

Re: [Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread FUJITA Tomonori
Hi, On Sun, 7 Sep 2014 17:49:39 +0800 Che-Wei Lin wrote: > On Ubuntu python's stdlib socket.gethostbyname return 127.0.1.1 NOT > 127.0.0.1 ? http://serverfault.com/questions/363095/why-does-my-hostname-appear-with-the-address-127-0-1-1-rather-than-127-0-0-1-in > Python 2.7.6 (default, Mar 22

Re: [Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread Che-Wei Lin
Hi, sorry, my bad! On Ubuntu python's stdlib socket.gethostbyname return 127.0.1.1 NOT 127.0.0.1 Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> socket.gethostbyname(socket.gethostnam

Re: [Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread FUJITA Tomonori
Hi, On Sun, 7 Sep 2014 15:34:02 +0800 Che-Wei Lin wrote: > I fixed some trivial minor bug and corrected some typos in the document. > > I found that when i want to get the REAL IP. > The old version used on Ubuntu python's stdlib socket.gethostbyname return > 127.0.0.1. I guess that a host can

Re: [Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread Che-Wei Lin
I fixed some trivial minor bug and corrected some typos in the document. I found that when i want to get the REAL IP. The old version used on Ubuntu python's stdlib socket.gethostbyname return 127.0.0.1. This patch I am using another way to get the real IP Che-Wei Lin

Re: [Ryu-devel] [PATCH] bgp: rpc-api 'core.start' method in Network Controller

2014-09-07 Thread FUJITA Tomonori
On Sat, 6 Sep 2014 09:28:33 +0900 Toshiki Tsuboi wrote: > When net_ctrl has received 'core.start' method through RPC-Session, if has > occurred ERROR as follows . > > (rpc-client) > $ PYTHONPATH=. ./rpc_cli.py --peers=bgps=localhost:50002 > (Cmd) request bgps core.start [{'router_id': '10.0.0.7

Re: [Ryu-devel] [PATCH] Snort Integrate:

2014-09-07 Thread FUJITA Tomonori
On Sat, 6 Sep 2014 23:22:19 +0800 Che-Wei Lin wrote: > diff --git a/ryu/lib/snortlib.py b/ryu/lib/snortlib.py > index 2773585..57ee986 100644 > --- a/ryu/lib/snortlib.py > +++ b/ryu/lib/snortlib.py > @@ -41,14 +41,21 @@ class SnortLib(app_manager.RyuApp): > self.config = {'unixsock': Tr

Re: [Ryu-devel] Help with RYU controller

2014-09-07 Thread FUJITA Tomonori
On Sat, 6 Sep 2014 20:17:40 -0700 Kiran Kumar wrote: > I'm new to RYU controller and I'm using RYU controller with OVS. I'm > simulating network topology using mininet . > I used the following RYU-MININET link. > http://sourceforge.net/projects/ryu/files/vmimages/OpenFlowTutorial/ Which image yo