First of all thanks for the reply. Now let me see if I got this correct:

I have a Green network 10.200.10.0/24
I have an Orange network 192.168.100.0/24

I have a T1 and an ADSL.
I want to setup policy routing so that all traffic from Green goes out from 
ADSL for all ports and all traffic for all ports to/from Orange goes out from 
T1.

How would the config file look like?

on,10.200.10.0/24,0.0.0.0/0,UPLINK:ADSL, via ADSL from ?????
on,192.168.100.0.24,0.0.0.0/0,UPLINK:main via main from ?????

Can anybody give a hint how to complete these rules?

thanks

stef

  ----- Original Message -----
  From: Zola
  To: [email protected]
  Sent: Tuesday, March 10, 2009 1:25 AM
  Subject: Re: [Efw-user] RES: RES: Is policy routing available in 
thecommunityedition?


  so first, thanks endian developers to create script for this :)




  -create file in /var/efw/routing/   file name:  config

  EXAMPLE

  /var/efw/routing/config:
  on,192.168.1.101,0.0.0.0/0,UPLINK:uplink1,https via backupline from 
1.101,,tcp,443,,,,
  on,192.168.1.101,0.0.0.0/0,UPLINK:main,ssh via main from 1.101,,tcp,22,,,,



  -------------------------------
  rule schema look like:
  "'enabled', 'src_ip', 'dst_ip', 'gateway', 'remark', 'dscp', 'proto', 
'dst_port', 'mac', 'log', 'src_dev', 'use_backup'"

  i dont know what means dscp(maybe qos?) and i dont try mac or src_dev options.

  if you have experience in phyton check this file for more details how work: 
/usr/local/bin/setpolicyrouting.py

  this is a default values if you not define something:
          enabled = 'on'
          src_ip = '0/0'
          dst_ip = '0/0'
          gateway = ''
          remark = ''
          dscp = 0
          proto = ''
          dst_port = ''
          mac = ''
          log = 'off'
          src_dev = ''
          use_backup = ''


  AFTER you edit config file apply your settings this command:
  /usr/local/bin/setpolicyrouting.py --debug

  "--debug" optional, just show what rules applied exactly.

  Z.


  2009/3/9 Marco Aurélio <[email protected]>

    OK.
    Thank you.
    I am sure it will help many people like me.
    []´s
    Marco Aurelio



----------------------------------------------------------------------------
    De: Zola [mailto:[email protected]]
    Enviada em: domingo, 8 de março de 2009 20:05

    Para: [email protected]

    Assunto: Re: [Efw-user] RES: Is policy routing available in the 
communityedition?


    hi

    yeh its possible, tomorrow if i have some time i will write how to do this.

    Z.


    2009/3/8 Marco Aurélio <[email protected]>

      I also have this problem and I saw only the commercial version there is 
this possibility.

      Is there a possibility to configure routing policy by command line or 
configuration file?

      Can anyone help this?

      Thanks

      Marco Aurelio



--------------------------------------------------------------------------
      De: Stefanos E. Tsorakis [mailto:[email protected]]
      Enviada em: quarta-feira, 4 de março de 2009 17:20
      Para: [email protected]
      Assunto: [Efw-user] Is policy routing available in the community edition?


      Is policy routing available in the community edition or is it just 
missing from the GUI?

      In any case does anyone have any idea how to configure all traffic from 
green to come out from a specific uplink?

      Thanks,

      stef

      
------------------------------------------------------------------------------
      Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, 
CA
      -OSBC tackles the biggest issue in open source: Open Sourcing the 
Enterprise
      -Strategies to boost innovation and cut costs with open source 
participation
      -Receive a $600 discount off the registration fee with the source code: 
SFAD
      http://p.sf.net/sfu/XcvMzF8H
      _______________________________________________
      Efw-user mailing list
      [email protected]
      https://lists.sourceforge.net/lists/listinfo/efw-user





    
------------------------------------------------------------------------------
    Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
    -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
    -Strategies to boost innovation and cut costs with open source participation
    -Receive a $600 discount off the registration fee with the source code: SFAD
    http://p.sf.net/sfu/XcvMzF8H
    _______________________________________________
    Efw-user mailing list
    [email protected]
    https://lists.sourceforge.net/lists/listinfo/efw-user






------------------------------------------------------------------------------


  ------------------------------------------------------------------------------



------------------------------------------------------------------------------


  _______________________________________________
  Efw-user mailing list
  [email protected]
  https://lists.sourceforge.net/lists/listinfo/efw-user
------------------------------------------------------------------------------
_______________________________________________
Efw-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/efw-user

Reply via email to