<ingenieroariel>
Hello everyone - does anyone have a sample configuration for a wifi router (my intel nuc has a static IP on the eth0 port and I want to set up a local hotspot now)
<ingenieroariel_>
hello - I managed to get my wifi network set up (using wpa_supplicant) and dhcp4, now my clients can connect and get an ip address
<gchristensen>
nice!
<ingenieroariel_>
the issue I am facing right now is making my computer acting as router to respond to clients, so they have an ip address and know about the router but nothing gets in or out
<gchristensen>
you need forwarding rules! :)
<gchristensen>
or maybe a nat?
<ingenieroariel_>
thanks to clever I already added a nat section but that did not help
<gchristensen>
nice
<ingenieroariel_>
ok, so I'll read about iptables now and see what is missing
<ingenieroariel_>
it looks like virt is setting up something similar to what I want?
<ingenieroariel_>
with: ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED ACCEPT all -- 192.168.122.0/24 anywhere
<ingenieroariel_>
what is the difference between networking.nat.extraCommands and networking.firewall.extraCommands when it comes to adding iptables rules?
<makefu>
i think you can use both
<makefu>
the one will be started at the beginning of NAT, the other of iptables
<ingenieroariel_>
so in this context both is the same as any of the two, right?
<ingenieroariel_>
thanks for both set of rules - I'll save them and try them again tomorrow, once I get it working I'll try to create an entry in the wiki