Hi Shinpei,
Thank you so much for your response, I edit the firewall by changing the
table_id=1 but left the router at the default of 0. but I am yet to get result.
When setting the gateway, the rule_id is not showing. I started both the
firewall and router application at the same time but I'm still not been able to
make the two application work together.<http://aka.ms/weboutlook>
________________________________
From: Shinpei Muraoka <[email protected]>
Sent: 05 January 2017 01:52 AM
To: [email protected]
Cc: [email protected]
Subject: Re: [Ryu-devel] Setting up firewall across 3 linear connected switches
Hi,
Please keep mailing list.
If you want to set table id for rest_firewall to 1.
Please make the following correction.
diff --git a/ryu/app/rest_firewall.py b/ryu/app/rest_firewall.py
index 81659a9..9d14e7c 100644
--- a/ryu/app/rest_firewall.py
+++ b/ryu/app/rest_firewall.py
@@ -868,6 +868,7 @@ class Firewall(object):
def _to_of_flow(self, cookie, priority, match, actions):
flow = {'cookie': cookie,
'priority': priority,
+ 'table_id': 1,
'flags': 0,
'idle_timeout': 0,
'hard_timeout': 0,
Also, if you want to set table id for rest_router to 1.
Please make the following correction.
diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py
index 81a3be4..77bfb12 100644
--- a/ryu/app/rest_router.py
+++ b/ryu/app/rest_router.py
@@ -1766,7 +1766,7 @@ class OfCtl_after_v1_2(OfCtl):
inst = [ofp_parser.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS,
actions)]
- m = ofp_parser.OFPFlowMod(self.dp, cookie, 0, 0, cmd, idle_timeout,
+ m = ofp_parser.OFPFlowMod(self.dp, cookie, 0, 1, cmd, idle_timeout,
0, priority, UINT32_MAX, ofp.OFPP_ANY,
ofp.OFPG_ANY, 0, match, inst)
self.dp.send_msg(m)
Just for information, If you want to specify 0 for table ID,
no modification is necessary.
Because rest_router and rest_firewall using the default value 0 for
table id.
For details on OFPFlowMod please see below.
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#modify-state-messages
Regards, Muraoka
On 2017年01月05日 02:37, Adebayo Adedayo wrote:
> Thanks Shinpei,
>
> Please let me know how to edit the code and where. And how to set the
> table id as 0 for rest_router and 1 for rest_firewall.
>
>
>
>
>
> *From: *Shinpei Muraoka <mailto:[email protected]>
> *Sent: *Wednesday, December 21, 2016 7:27 PM
> *To: *[email protected] <mailto:[email protected]>
> *Cc: *[email protected]
> <mailto:[email protected]>
> *Subject: *Re: [Ryu-devel] Setting up firewall across 3 linear connected
> switches
>
>
>
> Hi,
>
> Please keep mailing list.
>
> rest_router and rest_firewall using the default value 0 for table id.
> Because specify 0 for table id of OFPFlowMod.
> If you want to use rest_router and rest_firewall at the same time,
> Please set a different table id for OFPFlowMod.
>
> For example, set 0 to table id for rest_router and set 1 to table id for
> rest_firewall.
>
> rest_router uses direct OFPFlowMod but rest_firewall uses mod_flow_entry.
> Please note this point.
>
>
> thanks,
>
>
> On 2016年12月20日 16:39, Adebayo Adedayo wrote:
>>
>>
>> Thanks Shinpei, please can you give me the guideline on how to customize
>> the two app in order for me to have one app that run router and firewall
>> together.
>>
>> Thank you.
>>
>>
>>
>> *From: *Shinpei Muraoka <mailto:[email protected]>
>> *Sent: *Tuesday, December 20, 2016 12:59 AM
>> *To: *[email protected] <mailto:[email protected]>;
>> [email protected] <mailto:[email protected]>
>> *Subject: *Re: [Ryu-devel] Setting up firewall across 3 linear connected
>> switches
>>
>>
>>
>> Hi,
>>
>> > I have tried to run the “ryu.app.rest_router”, and
>> “ryu.app.rest_firewall” together at once but no success because it is
>> not working.
>>
>> rest_router and rest_firewall can not be started at the same time.
>> Because the flow table entries which are used in these apps are conflicted.
>>
>> If you want to use rest_router and rest_firewall at the same time,
>> you need to customize them.
>>
>>
>> > if it is also possible to set up a vlan on the ntw as well.
>>
>> rest_router can use vlan when operating Multi-tenant.
>>
>>
>> Thanks,
>>
>>
>> On 2016年12月20日 06:55, Adebayo Adedayo wrote:
>>> Hi All,
>>>
>>> Please I need how to set up connection and configuration of 3 linear
>>> switches to run firewall application. I set up mininet with 3 linear
>>> switches and 2 hosts each. Please how is it possible to set address on
>>> the switches in order for them to communicate. I have tried to run the
>>> “ryu.app.rest_router”, and “ryu.app.rest_firewall” together at once but
>>> no success because it is not working. Please let me know if this is
>>> possible and if there is any other way of doing this and if it is also
>>> possible to set up a vlan on the ntw as well.
>>>
>>> Thank you.
>>>
>>>
>>>
>>> Adebayo
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Developer Access Program for Intel Xeon Phi Processors
>>> Access to Intel Xeon Phi processor-based developer platforms.
>>> With one year of Intel Parallel Studio XE.
>>> Training and support from Colfax.
>>> Order your platform today.http://sdm.link/intel
>>>
>>>
>>>
>>> _______________________________________________
>>> Ryu-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel