Comments (3)
Hi,
Hi,
Recently I have read your great posts about Cisco ASA. When I do experiments with GNS3, I came accross some problems.
- Since
a GNS3 instance will be debugged over TCP/IP(telnet)
, why still need to enable and change "/dev/ttyS1" to "/dev/ttyS0" inrcS
script when patch the qcow2 image? Why not use-n
instead? (-n : gdb ethernet device, eg, 'eth0'
). I have tried use-n
option and made some corresponding changes, but it didn't work.
We still patch rcS to use "/dev/ttyS0" (instead of "/dev/ttyUSB0" because QEMU will redirect the serial port internally to a TCP port externally. So we access it from the external world (our machine) with gdb using a TCP/IP port but it will be redirected inside qemu to the serial port.
- When use
asadbg
to debug, aasacfg
file is needed. In GNS3 mode, we have to specify agns3_port
filed (in your case, use 12005 instead). But during patching the qcow2 image, I can't find the corresponding port. Is it the default port used by gdbserver? How can I configure that port when enable gdb?
See above for the same reason. We don't need to specify it when we build the qcow2 as all it is aware of/using is the serial port. We only require the TCP port when attaching with gdb.
Now I get the following at the boot (default console type is
vnc
), but I don't know which port to use in gdb (target remote < GNS3's ip>:<which port???>
).
We can get this information from the GNS3 window or GNS3 project file, see tutorial.md.
Any advice would be appricated! Thanks in advance.
from asafw.
@saidelike Thanks. Got it. I figured out the ip configured in env.sh
is also just used for debug purpose later.
from asafw.
Closing as you seem to agree it is fixed.
from asafw.
Related Issues (12)
- something wrong when I enable gdb HOT 2
- lina : aaa_admin_authenticate HOT 2
- issue running unpack_repack_bin.sh HOT 4
- Could not find kernel command line. HOT 13
- How to repack file to bin
- How to unpack asa*.bin for using in GNS3? HOT 5
- Hardcoded Python location in bin.py and helper.py HOT 1
- Serial debugging failing to start HOT 4
- The repacked image cannot pass the checksum verification. HOT 3
- How to disable aslr for the newest images? HOT 8
- How to access to the serial-shell after enable it? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asafw.