Open jkent opened 5 years ago
I really don't know much about how SSIDs and APs are handled. The code above looks good, assuming LWIP_TIMERS is enabled. Also be sure that you are assigning IP addresses/networks to each adapter as necessary. You might also want to run a DHCP server on the inp side:
https://github.com/russdill/tunsocks/blob/master/src/nat.c
On Sun, Oct 6, 2019 at 8:51 PM Jeff Kent notifications@github.com wrote:
Hi Russ,
Now that Espressif updated LWIP, I am able get your code to compile and link with a few tweaks. I'm not sure I understand how to use it though.
This is what I've basically done. Do I need to anything more?
void start_nat(void) { nat_init(); struct nat_rule* rule = malloc(sizeof(struct nat_rule)); rule->inp = netif_get_by_index(TCPIP_ADAPTER_IF_STA); rule->outp = netif_get_by_index(TCPIP_ADAPTER_IF_AP); nat_rule_add(rule); }
After this runs, the SSID for the AP interface disappears. Not sure what is up with that. Any help would be appreciated.
Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/russdill/lwip-nat/issues/2?email_source=notifications&email_token=AAK6P6DPPXTNG3ZLFG7JZKTQNKW5VA5CNFSM4I57LCMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HP6QPAA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK6P6CC2DWPKM3RZVEKZ2TQNKW5VANCNFSM4I57LCMA .
Hi Russ,
Now that Espressif updated LWIP, I am able get your code to compile and link with a few tweaks. I'm not sure I understand how to use it though.
This is what I've basically done. Do I need to anything more?
After this runs, the SSID for the AP interface disappears. Reversing the interfaces makes no difference. Not sure what is up with that. Any help would be appreciated.
Thanks!