Aliases dosen't work(?)

Started by mais_um, December 08, 2017, 01:29:54 AM

Previous topic - Next topic
January 14, 2018, 04:15:27 PM #15 Last Edit: January 14, 2018, 04:33:14 PM by nivek1612
Quote from: franco on January 14, 2018, 03:29:44 PM
Hi nivek,

Can you dump this output for me?

# df -h

I think you are using /var MFS through Nano image maybe?


Cheers,
Franco

Sorry Franco not back at home until mid week, hopefully Martins reply will suffice . I know we are using the same settings as i think I stole them from him originally :-)

Also like Martin
after reboot 'configctl filter refresh_aliases' just freezes when I run it. CTRL-C and run it again it says OK.
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)

Well, was it an install or Nano image, do you know? :)

mine was a serial image. 17.7. then bounced up.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

I did a fresh install of a 18.1 vga image from European mirror on a new SSD

I then restored my config from 17.7.11
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)

Ok so a real install... that's a bit peculiar but let's see what a new round of testing does.

18.1-RC2 is coming out tomorrow so that won't be in there completely but 18.1 should be fine later.


Cheers,
Franco

Running RC2....

Confirm aliases are working. :)

Seems that an import of the config from my live device running 17.7.11 is not liked by the APU running 18.1-rc2, possibly because I use all the ports in a LAN bridge on the Qotom. It seems it gets all confused even if I have removed the bridge and extra ports.

Clean install and config took a while but it all works nicely, well done Franco and all.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

January 16, 2018, 02:01:52 AM #21 Last Edit: January 16, 2018, 02:16:20 AM by marjohn56
Hold hard....

Did work until reboot then lost all the aliases.

Note, The aliastables folder is there. ZZZzzz time now, I'll check the contents of it tomorrow ( later today )!
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Don't know if this will help. Here are the aliases bits from rules.debug from a 17 live machine and 18.1-rc2 - 17 first.

# Other tables
table <virusprot>
table <bogons> persist file "/usr/local/etc/bogons"
table <bogonsv6> persist file "/usr/local/etc/bogonsv6"

# User Aliases
table <MAIL_SERVER_IPS> { 192.168.1.30 2a02:8010:6228:0:1:2:3:4 }
MAIL_SERVER_IPS = "<MAIL_SERVER_IPS>"
MAIL_SERVER_PORTS = "{ 443 465 587 993 }"
table <Mail_Server_WAN_IP> { 82.68.104.101 }
Mail_Server_WAN_IP = "<Mail_Server_WAN_IP>"
table <SPAM_HERO_IPS> { 108.60.195.218 108.60.195.213 108.60.195.222 208.53.48.218 208.53.48.191 208.53.48.71 }
SPAM_HERO_IPS = "<SPAM_HERO_IPS>"
Spam_Hero_Ports = "{ 2525 }"
table <V4Geoip> persist file "/var/db/aliastables/V4Geoip.txt"
V4Geoip = "<V4Geoip>"
table <V6GeoIP> persist file "/var/db/aliastables/V6GeoIP.txt"
V6GeoIP = "<V6GeoIP>"
Web_server_ports = "{ 80 443 }"


--------------------------------------------
from 18

# Other tables
table <virusprot>
table <bogons> persist file "/usr/local/etc/bogons"
table <bogonsv6> persist file "/usr/local/etc/bogonsv6"

# User Aliases
table <Geoip> persist
Geoip = "<Geoip>"
table <MAIL_SERVER_IPS> persist
MAIL_SERVER_IPS = "<MAIL_SERVER_IPS>"
MAIL_SERVER_PORTS = "{ 443 465 587 993 }"
table <Mail_Server_WAN_IP> persist
Mail_Server_WAN_IP = "<Mail_Server_WAN_IP>"
table <SPAM_HERO_IPS> persist
SPAM_HERO_IPS = "<SPAM_HERO_IPS>"
Spam_Hero_Ports = "{ 2525 }"
Web_server_ports = "{ 80 443 }"

# Plugins tables



OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Hey,

I still need "df -h" output here...

There is one patch that helps with /var MFS but it's not on 18.1.r2: https://github.com/opnsense/core/commit/6536510


Cheers,
Franco

Yes, I applied that patch before I rebooted.

OK, what I'll do after work is put the test unit back online and see what happens, I'll also get you the output you need.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

The first reboot won't work because that's when it creates the persistent directory :D

Please provide "df -h" output of that box to be sure we're not talking about different things.

Nuts, I thought it was just the aliastables folder...

OK, let me bring it online. Might be an hour and a half or so, depending on the London traffic.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Ok, got home quicker than expected, it's still blocking my aliases, here's the output you wanted/

root@gateway:~ # df -h
Filesystem         Size    Used   Avail Capacity  Mounted on
/dev/gpt/rootfs     26G    1.0G     23G     4%    /
devfs              1.0K    1.0K      0B   100%    /dev
devfs              1.0K    1.0K      0B   100%    /var/dhcpd/dev
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

I miss London. ;(

Are you sure this is alias related and not https://forum.opnsense.org/index.php?topic=6891.0 ?


Cheers,
Franco

I don't miss London, I'd much rather be on a the beach in the Maldives.

So why does it affect only Aliases, if I manually enter a rule with the IP addresses it works?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member