[Tetaneutral] Partage connexion internet, pb iptables, dnsmasq??

Ivan Mercier ivan.mercier at gmail.com
Tue Sep 6 20:43:08 CEST 2011


pas mieux

Le 6 septembre 2011 20:16, Simon Vernhes <simon at vernhes.eu> a écrit :

> Bonjour,
>
> Je ne suis pas très callé iptables mais, il manquerait pas un petit "#
> iptables -A FORWARD -i eth1 -j ACCEPT" ?
>
>
>
> Le 6 septembre 2011 19:51, Ivan Mercier <ivan.mercier at gmail.com> a écrit :
>
>> Bonjour à tous,
>> j'aimerais avoir un peu de votre aide pour relier ma 9box(sous OpenWrt)
>> ...
>>
>> 9box(br-lan)----------->(eth1)PC (debian 6 wheezy)
>>
>> (eth0)---------------------------------->routeur-------------->WWW
>>
>> Voila ma config:
>> PC(relié au web)
>> firewall desactivé
>> ifconfig eth1 192.168.1.123
>> iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
>> echo 1> /proc/sys/net/ipv4/ip_forward
>>
>> cat /etc/dnsmasq.conf
>> dhcp-option=3,192.168.1.123
>> dhcp-range=192.168.1.1,192.168.1.4,24h
>>
>> 9BOX:
>> route add default gw 192.168.1.123
>> echo "nameserver 192.168.1.123" > /etc/resolv.conf
>>
>> Résultat:
>> DNS ok
>> le reste est bloqué par ???
>>
>> merci beaucoup!
>> Ivan
>>
>> _______________________________________________
>> Tetaneutral mailing list
>> Tetaneutral at lists.tetalab.org
>> http://lists.tetalab.org/cgi-bin/mailman/listinfo/tetaneutral
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tetalab.org/pipermail/tetaneutral/attachments/20110906/78bd8d17/attachment.html>


More information about the Tetaneutral mailing list