Skip to content
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

How to modify the IP address simulated by the firmware? #77

Open
DaDong-G opened this issue Mar 14, 2024 · 3 comments
Open

How to modify the IP address simulated by the firmware? #77

DaDong-G opened this issue Mar 14, 2024 · 3 comments

Comments

@DaDong-G
Copy link

How to modify the IP address simulated by the firmware? When I tried to simulate it with docker, I bound it to 192.168.0.1. No matter how I changed the script, it had no effect. Is there any way to change it to another IP, such as 172.17.0.110?

@DaDong-G
Copy link
Author

Or how to modify the port? Every time it is bound to port 80, is there any way to change it?

@DaDong-G
Copy link
Author

有人吗?

@pr0v3rbs
Copy link
Owner

pr0v3rbs commented Mar 31, 2024

If a network information found in qemu.initial.serial.log, then the related network interface will be created on the actual emulation phase. However, the network was not found, then FirmAE will use 192.168.0.1 as a default network interface.

The IP address can be found in the run.sh script from scratch directory and firmadyne/network.sh script in the image.raw filesystem image. Change the IP address what you want.

Finally, the all port will be connectable from the host to the guest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants