<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Very nice .. <span title="" class="">Thank you</span> very much. I will give this a try soon.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;">
Joseph Wennechuk
<div>Phone: (226) 505-4812<br>
</div>
<div><a href="https://www.linkedin.com/pub/joseph-wennechuk/4/b59/382" target="_blank" id="LPNoLP">https://www.linkedin.com/pub/joseph-wennechuk/4/b59/382</a></div>
<div><br>
</div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> kwlug-disc <kwlug-disc-bounces@kwlug.org> on behalf of B.S. <bs27975.2@gmail.com><br>
<b>Sent:</b> July 8, 2017 1:21 AM<br>
<b>To:</b> KWLUG discussion<br>
<b>Subject:</b> Re: [kwlug-disc] IP 6 Ad-Hoc Wireless network</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I haven't done this with ipv6, myself, but ...<br>
<br>
Looks like (man dhcpd.conf) subnet is your key here:<br>
subnet6 <subnet6-number> {<br>
...<br>
}<br>
<br>
I also see:<br>
<<<<<<br>
The fixed-address6 declaration<br>
  fixed-address6 ip6-address ;<br>
<br>
  The fixed-address6 declaration is used to assign a fixed IPv6<br>
addresses to a client.  It should only appear in a host declaration.<br>
>>>>><br>
<br>
- which may make more sense for you in this use case.<br>
<br>
It seems intuitive to have dhcp only bind on your wireless address,<br>
however I see nothing in man dhcpd.conf regarding that. Switching to man<br>
dhcpd-options reveals an entire section on 'STANDARD DHCPV6 OPTIONS'.<br>
Searching 'interface' there reveals ... nothing.<br>
<br>
Since I don't see an /etc/default/dhcpd on my system, a quick turn to<br>
google takes me to <a href="https://wiki.debian.org/DHCP_Server">https://wiki.debian.org/DHCP_Server</a>, and the D'OH<br>
moment of /etc/default/isc-dhcp-server, within which is the<br>
'INTERFACES=""' line that you could set to your wireless interface.<br>
<br>
OTOH, for this one use case, it's arguable you could entirely ignore<br>
DHCP, and just have him set his gateway to your wlp6s0 address.<br>
Especially if you set it to a static address.<br>
<br>
<br>
For bridging, again, I haven't done ipv6, but you'll want to enable<br>
forwarding, make the bridge, and permit forwarding.<br>
<br>
Enable Forwarding:<br>
# cat /proc/sys/net/ipv4/ip_forward (or in your case:)<br>
# cat /proc/sys/net/ipv6/conf/all/forwarding (per /etc/sysctl.conf)<br>
## Substitute your interface for all, if you prefer.<br>
<br>
echo 1 > <your spot, above> # to enable forwarding.<br>
<br>
<br>
I've done bridging a couple of ways from the command line:<br>
# brctl addbr br0<br>
# brctl addif br0 eth0<br>
# brctl addif wlp6s0<br>
(# brctl addif br0 eth0 wlp6s0 # may be possible, instead.)<br>
<br>
# brctl show br0 # to see what's what.<br>
<br>
<br>
Or:<br>
# ip link add br0 type bridge<br>
# ip link set dev eth0 master br0<br>
# ip link set dev wlp6s0 master br0<br>
<br>
# brctl show br0 # to see what's what, or use equivalent 'ip' commands.<br>
<br>
<br>
To permit forwarding, try:<br>
# iptables -t nat -vnL<br>
<br>
Likely you'll see '(policy ACCEPT' for each chain. You might need<br>
something like:<br>
<br>
# iptables -t nat -vA POSTROUTING -i wlp6s0 -o eth0 -j MASQUERADE<br>
<br>
For:<br>
# iptables --line-numbers -vnL<br>
<br>
You'll likely need something like:<br>
# iptables -vA FORWARD -i wlp6s0 -o eth0 -j ACCEPT<br>
<br>
And probably:<br>
# iptables -vA FORWARD -i eth0  -o wlp6s0 -m state --state<br>
RELATED,ESTABLISHED -j ACCEPT<br>
<br>
<br>
GL&HF.<br>
<br>
<br>
On 07/07/2017 08:28 AM, Joe Wennechuk wrote:<br>
> Hello!<br>
> <br>
> <br>
>    My friend is submitting an android app to the app store, and it must be tested with ip6. I wanted to set up my machine as an ad hoc wireless network running dhcp, but only dhcp-ing ip6 addresses out, and also bridging it to my wired network connected to
 the internet with an ip4 setup.<br>
> <br>
> <br>
> I tried it with..<br>
> <br>
> iwconfig wlp6s0 mode ad-hoc<br>
> <br>
> iwconfig wlp6s0 essid blahblahip6-network<br>
> <br>
> iwconfig wlp6s0 key "PasswordForNetwork"<br>
> <br>
> ifconfig wlp6s0 inet6 add 2001:0db8:0:f101::1/64<br>
> <br>
> <br>
> but I'm not sure how to get the dhcp running ip6 only, and how to get the bridge set up to push the wireless through the wired ip4 network I need to figure out the dhcpd.conf  stuff and the bridge..<br>
> <br>
> <br>
> <br>
> <br>
> Joseph Wennechuk<br>
> Phone: (226) 505-4812<br>
> <a href="https://www.linkedin.com/pub/joseph-wennechuk/4/b59/382">https://www.linkedin.com/pub/joseph-wennechuk/4/b59/382</a><br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> kwlug-disc mailing list<br>
> kwlug-disc@kwlug.org<br>
> <a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
> <br>
<br>
_______________________________________________<br>
kwlug-disc mailing list<br>
kwlug-disc@kwlug.org<br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
</div>
</span></font></div>
</div>
</body>
</html>