Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
neok
New Contributor

Country GeoIP source based policy

Hi, I have been using FortiGate for a week. So I am a bit new. I have a question: I want to know if I can restrict access to my FTP server so that the port forwarding policy only allows connections from IPs from a certain country/countries.

I can't find how to do it, if it is possible to do it.

Thank you very much in advance.

Best regards, Gabriel

1 REPLY 1
emnoc
Esteemed Contributor III

easy as 1-2-3

 

config firewall address edit "USA" set type geography set country "US" next end

 

config firewall policy edit 0  set srcintf "wan1" set dstintf "lan" set srcaddr "USA" set action accept set schedule "always" set service "FTP" next end

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors