ipv4 Policy not working
Apologies for what I hope my struggles are merely from being a novice user of Fortigate products. I am now managing my first Fortigate 60E and trying to get port forwarding to work for a specific source. Actually, I do have port forwarding working for a specific source, but only one source. When I try to add any other source to a rule or even a separate rule for the source in question, it doesn’t work. I can’t remember if the source IP address that works was setup in some special way in the past, I am unable to find differences. So, I use the CLI to debug and really do not understand why the differences. First of all, here are the rules, both WebTent and WebTent DC are single IP addresses.


As you can see, I am forwarding port 5022 to an internal IP port 22, this works from WebTent, but not WebTent-DC. So, for the debug, I see this for traffic when coming from WebTent and it works…
FGT60ETK18001521 # diagnose debug flow filter saddr < my WebTent IP address >
FGT60ETK18001521 # diagnose debug flow trace start 100
FGT60ETK18001521 # diagnose debug enable
FGT60ETK18001521 # id=20085 trace_id=267 func=print_pkt_detail line=4903 msg="vd-root received a packet(proto=6, < my WebTent IP address >:3285->< wan address >:5022) from wan2. flag [S], seq 203916275, ack 0, win 65535"
id=20085 trace_id=267 func=init_ip_session_common line=5047 msg="allocate a new session-079fa6dc"
id=20085 trace_id=267 func=fw_pre_route_handler line=182 msg="VIP-192.168.1.50:22, outdev-wan2"
id=20085 trace_id=267 func=__ip_session_run_tuple line=2894 msg="DNAT < wan address >:5022->192.168.1.50:22"
Now, from WebTent-DC…
FGT60ETK18001521 # diagnose debug flow filter saddr < my WebTent-DC IP address >
FGT60ETK18001521 # diagnose debug flow trace start 100
FGT60ETK18001521 # diagnose debug enable
FGT60ETK18001521 # id=20085 trace_id=269 func=print_pkt_detail line=4903 msg="vd-root received a packet(proto=6, < my WebTent-DC IP address >:35125->< wan address >:5022) from wan2. flag [S], seq 3558509990, ack 0, win 65535"
id=20085 trace_id=269 func=init_ip_session_common line=5047 msg="allocate a new session-079fae18"
id=20085 trace_id=269 func=vf_ip_route_input_common line=2583 msg="find a route: flag=80000000 gw-< wan address > via root"
id=20085 trace_id=269 func=fw_local_in_handler line=391 msg="iprope_in_check() check failed on policy 0, drop"
Could someone help me see what I must be missing that doesn’t allow WebTent-DC to connect? I am not aware of any “apply” button and understand the Fortigate should save the configuration automatically.
