<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">root@server:~# cat /etc/iptables.rules<br>
# Generated by iptables-save v1.4.12 on Mon Oct 21 14:20:11 2013<br>
*filter<br>
:INPUT ACCEPT [139186815:198760302176]<br>
:FORWARD ACCEPT [164720:119001188]<br>
:OUTPUT ACCEPT [71521197:51782117907]<br>
-A FORWARD -i wlan0 -j ACCEPT<br>
COMMIT<br>
# Completed on Mon Oct 21 14:20:11 2013<br>
# Generated by iptables-save v1.4.12 on Mon Oct 21 14:20:11 2013<br>
*nat<br>
:PREROUTING ACCEPT [20829:1924943]<br>
:INPUT ACCEPT [15083:1550208]<br>
:OUTPUT ACCEPT [377940:23333519]<br>
:POSTROUTING ACCEPT [334113:20054009]<br>
-A POSTROUTING -o eth0 -j MASQUERADE<br>
COMMIT<br>
# Completed on Mon Oct 21 14:20:11 2013<br>
<br>
<br>
This is working config for me. Just save it an restore it with
iptables-restore.<br>
Or you can try the solution from the ubuntuusers.de wiki:<br>
<br>
sysctl -w net.ipv4.ip_forward=1 #Activate the ipv4 forwarding<br>
iptables -A FORWARD -o eth0 -i eth1 -s 10.0.0.0/24 -m conntrack
--ctstate NEW -j ACCEPT <br>
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j
ACCEPT <br>
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE <br>
<br>
To activate ipv4 forwarding permantly you need to edit your
/etc/sysctl.conf.<br>
/etc/sysctl.conf:<br>
net.ipv4.ip_forward = 1<br>
<br>
<br>
Jan<br>
<br>
Am 15.11.2013 18:21, schrieb Kf Lee:<br>
</div>
<blockquote
cite="mid:CAPbQyUSp-BBdC7DKOhQMsv0s8joJCECtO8ve_ds+kXLd+rD_fQ@mail.gmail.com"
type="cite">
<p>HI,</p>
<p>I just managed to install hostapd + dhcpd and configure wlan0
to act as ap in 10.0.0.1<br>
with android user is able to connect the ap with an assigned
ip 10.0.0.65. The pc (Linuxmint 15) that Is cable wired to
the router is in 192.1.168.111 and the router ip set to
192.168.1.1</p>
<p>I thought tthat the Android user should be able to connect to
internet via pc using iptables to forward the package but it
can't. First question : is this right thinking ? If it in the
rght track, can anyone provide a working example ?</p>
<p>I search through a lot write up in the web and none actually
work which surprised me. This seem a quite typical use of
hostapd.</p>
<p>I also try use bridge but the brctl command say that bridge
does not support wlan0 . From reading it become clear bridge is
for bridging wired network segments. <br>
</p>
<p>Any help is appreciated .<br>
Rgds , kfl.<br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
HostAP mailing list
<a class="moz-txt-link-abbreviated" href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a>
<a class="moz-txt-link-freetext" href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a>
</pre>
</blockquote>
<br>
</body>
</html>