So I have this working according to instructions and I can even telnet back to the host on 42323. My question is... do I have to rebuild from source to use the other 5 re-direct slots?
Ideally I'd swap out 42323 with 42322 for SSH, port 80, 443, 25, and maybe one other.
I can't seem to figure out even from a glance at the source where the slirp.conf stuff is.
https://sourceforge.net/p/previous/code/HEAD/tree/trunk/src/enet_slirp.cIt's in enet_slirp_start
void enet_slirp_start(Uint8 *mac) {
struct in_addr guest_addr;
if (!slirp_inited) {
Log_Printf(LOG_WARN, "Initializing SLIRP");
slirp_inited=1;
slirp_init();
inet_aton("10.0.2.15", &guest_addr);
slirp_redir(0, 42323, guest_addr, 23);
}
if (slirp_inited && !slirp_started) {
Log_Printf(LOG_WARN, "Starting SLIRP");
slirp_started=1;
slirpq = QueueCreate();
slirp_mutex=SDL_CreateMutex();
tick_func_handle=SDL_CreateThread(tick_func,"SLiRPTickThread", (void *)NULL);
}
}
Specifically this line:
slirp_redir(0, 42323, guest_addr, 23);