Skip to content

Interloper break in the server via the captured client #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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