FMG-Access restriction to a certain IP address
Hi All,
I need to restrict FMG-Access to a certain IP.
Could you please advise if this is what I need?
Or this is the only way to restrict FMG-Access?
Thanks in advance.
Hi All,
I need to restrict FMG-Access to a certain IP.
Could you please advise if this is what I need?
Or this is the only way to restrict FMG-Access?
Thanks in advance.
No. I was the one who didn't understand what "FMG-Access" you meant was. You're talking about "FMG's FGT access".
The FGT's trusthost config is for regular admin access using the admin user name/password you configured at the FGT. FMG doesn't use those.
If you want to filter FMG's FGFM (TCP 541) acccess at a FGT, you need to set up local-in policy to specify allowed FMG's IP and block everything else. Below is the admin guide:
https://docs.fortinet.com/document/fortigate/7.4.4/administration-guide/363127/local-in-policy
But it would look like below.
config firewall local-in-policy
edit 0
set intf "wan" <-- in case 30E
set srcaddr "FMG-source-IP"
set dstaddr "all"
set action accept
set service "TCP541" <-- you need to define this service object first
set schedule "always"
next
edit 0
set intf "wan"
set srcaddr "all"
set dstaddr "all"
set action deny <-- this wouldn't show up in "show" because action=deny by default
set service "TCP541" <-- It's important to specify specific protocol to "deny".
set schedule "always"
next
end
Note: the order of policies is very important. If those are the only local-in-policies, those would become "edit 1" and "edit 2" in "show" command. Make sure the order is correct. You can move them around with "move" command if it isn't right.
Above policies filter only TCP 541. Not your addmin access like TCP 443 or SSH 22. So you can still control that part with the trusthost config you showed.
Or, once you get used to be using local-in-policies, you can limit those admin access with local-in-policy as well.
Toshi
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.