IP spoofing 에 관해 테스트 중입니다.
환경은 이렇습니다.
1. PC + Ubuntu(virtual box)
2. target board(android 9.0)
target에는 wifi hotspot이 있어서(유선은 없습니다) 켜두고 윈도우PC에서 wifi로 target의 hotspot에
연결하면 Ubuntu와 target 사이에 192.168.5.x 망 으로 연결됩니다.
Ubuntu에서:
hping3 192.168.5.1 -S -a 192.168.5.1
위와같이 src IP를 dst와 같게 spoofing 하여 target(192.168.5.1)으로 쏩니다.
target에서:
iptables -N LOGTEST
iptables -A LOGTEST -j LOG --log-prefix "[firewall]"
iptables -A INPUT -j LOGTEST
(모든 INPUT 패킷을 다 로그에 남겨라) 해놓고,