OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • NAT, port aliases, redirect not working after upgrade
« previous next »
  • Print
Pages: 1 2 3 [4] 5 6

Author Topic: NAT, port aliases, redirect not working after upgrade  (Read 26269 times)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13902
  • Karma: 1206
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #45 on: February 01, 2018, 11:51:13 pm »
Maybe we should separate "not working" into two categories:

(a) Firewall: Diagnostics: pfTables -- alias empty
(b) generally not working in NAT or firewall rule

Then also check (b) under Firewall: Diagnostics: pfInfo (Rules) whether these non-working rules actually see traffic


Thanks,
Franco
Logged

Evil_Sense

  • Full Member
  • ***
  • Posts: 112
  • Karma: 15
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #46 on: February 02, 2018, 01:30:07 am »
Quote from: franco on February 01, 2018, 11:51:13 pm
Maybe we should separate "not working" into two categories:

(a) Firewall: Diagnostics: pfTables -- alias empty
(b) generally not working in NAT or firewall rule

Then also check (b) under Firewall: Diagnostics: pfInfo (Rules) whether these non-working rules actually see traffic


Thanks,
Franco
Got it, my GeoIP alias falls under (a), the pfTable is empty and therefore there's nothing to compare to, since I'm using it as source nothing passes :)
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13902
  • Karma: 1206
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #47 on: February 02, 2018, 09:13:53 am »
Okay, that's good and bad... Good in the sense it's not a fundamental firewall issue, bad because whatever prevents your system from fetching the aliases may prevent it from reaching out in the first place...  Is that table populated when you run this from the console?

# configctl filter refresh_aliases
Logged

Evil_Sense

  • Full Member
  • ***
  • Posts: 112
  • Karma: 15
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #48 on: February 02, 2018, 09:29:14 am »
Quote from: franco on February 02, 2018, 09:13:53 am
Okay, that's good and bad... Good in the sense it's not a fundamental firewall issue, bad because whatever prevents your system from fetching the aliases may prevent it from reaching out in the first place...  Is that table populated when you run this from the console?

# configctl filter refresh_aliases
The command only returns 'OK'.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13902
  • Karma: 1206
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #49 on: February 02, 2018, 09:34:34 am »
Sure, now check the table...
Logged

Evil_Sense

  • Full Member
  • ***
  • Posts: 112
  • Karma: 15
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #50 on: February 02, 2018, 09:35:05 am »
Quote from: franco on February 02, 2018, 09:34:34 am
Sure, now check the table...
Seems it's still empty :(
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13902
  • Karma: 1206
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #51 on: February 02, 2018, 09:38:01 am »
What does this return then?

# ls -lah /var/db/aliastables/
Logged

Evil_Sense

  • Full Member
  • ***
  • Posts: 112
  • Karma: 15
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #52 on: February 02, 2018, 09:52:15 am »
Quote from: franco on February 02, 2018, 09:38:01 am
What does this return then?

# ls -lah /var/db/aliastables/
CH is my GeoIP alias, and it's empty, NAS contains the address I configured.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13902
  • Karma: 1206
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #53 on: February 02, 2018, 09:57:37 am »
Are you using the CH alias in a floating rule?
Logged

Evil_Sense

  • Full Member
  • ***
  • Posts: 112
  • Karma: 15
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #54 on: February 02, 2018, 10:00:22 am »
Quote from: franco on February 02, 2018, 09:57:37 am
Are you using the CH alias in a floating rule?
No, only in WAN rules, but currently it's removed from them because I tried to recreate the alias at the time displayed by the ls command.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13902
  • Karma: 1206
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #55 on: February 02, 2018, 10:03:08 am »
So you can't fetch the GeoIP alias even though it's not used?

We can try to increase the pressure:

# rm /var/db/aliastables/CH*
# configctl filter refresh_aliases

Still empty?
Logged

Phobus

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #56 on: February 02, 2018, 10:19:07 am »
Quote from: franco on February 01, 2018, 11:51:13 pm
Maybe we should separate "not working" into two categories:

(a) Firewall: Diagnostics: pfTables -- alias empty
(b) generally not working in NAT or firewall rule

Then also check (b) under Firewall: Diagnostics: pfInfo (Rules) whether these non-working rules actually see traffic


Thanks,
Franco

For me (Alias problem):
(a) Firewall: Diagnostics: pfTables -- alias empty

# configctl filter refresh_aliases
Still empty

# rm /var/db/aliastables/EBL*
# configctl filter refresh_aliases
Still empty
Output: Error (1)

Strange Output now files and Aliases are missing:

root@*****:~ # ls -lah /var/db/aliastables/
total 12
drwxr-x---   2 root  wheel   512B Feb  2 10:29 .
drwxr-xr-x  18 root  wheel   1.0K Feb  2 08:36 ..
-rw-r-----   1 root  wheel   257B Feb  2 10:29 EBL.self.txt
« Last Edit: February 02, 2018, 10:34:32 am by Phobus »
Logged

Evil_Sense

  • Full Member
  • ***
  • Posts: 112
  • Karma: 15
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #57 on: February 02, 2018, 10:20:14 am »
Quote from: franco on February 02, 2018, 10:03:08 am
So you can't fetch the GeoIP alias even though it's not used?

We can try to increase the pressure:

# rm /var/db/aliastables/CH*
# configctl filter refresh_aliases

Still empty?
Sadly yes, the three files are created but the txt file is still empty.
« Last Edit: February 02, 2018, 10:27:26 am by Evil_Sense »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13902
  • Karma: 1206
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #58 on: February 02, 2018, 10:37:29 am »
Under Firewall: Settings: Advanced, is " Verify HTTPS certificates when downloading alias URLs" checked or unchecked? Are you using a proxy server in your network doing HTTPS MITM?


Cheers,
Franco
Logged

Evil_Sense

  • Full Member
  • ***
  • Posts: 112
  • Karma: 15
    • View Profile
Re: NAT, port aliases, redirect not working after upgrade
« Reply #59 on: February 02, 2018, 10:39:53 am »
Quote from: franco on February 02, 2018, 10:37:29 am
Under Firewall: Settings: Advanced, is " Verify HTTPS certificates when downloading alias URLs" checked or unchecked? Are you using a proxy server in your network doing HTTPS MITM?


Cheers,
Franco
Setting is unchecked and I'm not using a proxy server who intercepts https..
Logged

  • Print
Pages: 1 2 3 [4] 5 6
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • NAT, port aliases, redirect not working after upgrade
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2