Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - benmz

#1
Because the routing form only deals with destination IP route, but sometimes (specially with ppp or specific datacenters like here in France with Dedibox) your gateway is not an IP but an interface (set with the -link option in CLI command)
So in my case I got a /32 IP address on em0 a completely different /32 IP as a gateway which I need to set directly to the interface, and a default gateway pointing to that last gateway...

for exemple:

iface ifconfig em0 inet XX.XX.XX.XXX netmask 255.255.255.255
route add -inet 195.154.YYY.1/32 -link -iface em0
route add default 195.154.YYY.1

Does that answer your question ? Did I miss something in the GUI ?  :D
#2
15.1 Legacy Series / Re: Route to interface
July 01, 2015, 03:45:13 PM
Yep! this seems to do the trick for the CLI part...  :)

Anyway I'd be glad to help on GUI dev if needed, but I'm a little bit stuck doesn't knowing where to start for this...

But topic could be set as 'SOLVED'


Thanks a lot for your quick answer, and sorry for my bad english...  ;D
#3
15.1 Legacy Series / [SOLVED] Route to interface
July 01, 2015, 03:33:00 PM
Hi, first of all thanks a lot for your product... I really love to use a decent interface based on a decent firewall !! ;)
One suggestion I have is to support interface based route.

I was adding route like:
route add -inet 195.154.XX.XX/32 -link -iface em0

before 15.1.12 with /etc/hostname.em0 and /etc/rc.conf, but since last upgrade I'm not able anymore to set them automatically on startup...

How could I implement this option ? I don't even know where to start looking in the code. I'm a robust PHP dev  ;) but I have never played with phalcon...

Thanks anyway for your efforts to bring back pleasant firewalls !!