liyansong2018 / firmware-analysis-plus

Simulate firmware with one click of firmadyne (使用 firmadyne 一键模拟固件)
MIT License
307 stars 29 forks source link

Run.sh executed successfully, but could not connect to the firmware. #10

Closed liyansong2018 closed 3 years ago

liyansong2018 commented 3 years ago

from https://github.com/firmadyne/firmadyne/issues/26

I downloaded the Ubuntu 14.04.5 LTS 32 bit to setup firmadyne from scratch. I have everything setup as per README.md, and run.sh was generated successfully for the firmware I am testing. However, upon running the run.sh (the console shows the firmware running successfully), I could not ping the emulated on the IP indicated in the run.sh, nor I could reach the web interface of the firmware (the firmware runs fine on AttifyOS thou).

I have check that the route was added successfully (tap1 created successfully) as the IP address is the same as per run.sh. I traced through qemu.final or qemu.inital log but I could not tell what went wrong.

$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
^C
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
liyansong2018 commented 3 years ago

Bridge setting error

Reset the bridge in the qemu virtual machine

brctl delif br0 eth0.0
brctl addif br0 eth0