Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions server/incoming_spa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,13 @@ incoming_spa(fko_srv_options_t *opts)
break;
}

/* gitfal13579 modified on 2018-08-01,only These one will be permited to come in when knocking the firewall */
if(strcmp(spadat.pkt_source_ip,spadat.spa_message_src_ip))
{
log_msg(LOG_WARNING, "(stanza #%d) [%s] knocking the door,[%s] come in ???,%s!, ignoring SPA packet",
stanza_num,spadat.pkt_source_ip, spadat.spa_message_src_ip, fko_errstr(FKO_ERROR_KNOCKER_VISITOR_NOT_SAME_GUY));
break;
}
strlcpy(spadat.spa_message_remain, spa_ip_demark+1, MAX_DECRYPTED_SPA_LEN);

/* If use source IP was requested (embedded IP of 0.0.0.0), make sure it
Expand Down