Olá para todos.<br><br> Eu gostaria de saber como montar um gateway no fedora core 6 x64 na seguinte topologia:<br><br> LAN <br> <a href="http://192.168.1.0/28">192.168.1.0/28
</a><br><br> |<br> |<br> |<br><span style="font-weight: bold;"><br> Fedora core </span> <br>eth0: <a href="http://192.168.1.1/28" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
192.168.1.1/28</a>
| eth1: <a href="http://10.10.1.1/24" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.10.1.1/24</a> <br><br> |<br> |<br> |
<br><br> FreeBSD <br> <a href="http://10.10.1.253/24">10.10.1.253/24</a><br><br> |<br> |<br> |
<br><br> Router <br> <a href="http://10.10.1.253/24" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"></a> x.x.x.x<br><br> |
<br>
|<br>
|<br>
<br> WAN<br> <a href="http://0.0.0.0">0.0.0.0</a><br>
<br clear="all">O FreeBSD já esta configurado e funcionando perfeitamente para a rede <a href="http://10.10.1.0/24" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.10.1.0/24</a>. Nem foi eu que configurei, foi outro admin.
<br><br>Já o Fedora, é o sistema que eu preciso configurar para a rede
<a href="http://192.168.1.0/28" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.0/28</a> acessar a internet através da rede <a href="http://10.10.1.0/24" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
10.10.1.0/24</a>. Eu coloquei as seguintes regras para abilitar este funcionamento:<br><br><span style="font-weight: bold;">echo 1 > /proc/sys/net/ipv4/ip_forward</span><br style="font-weight: bold;"><span style="font-weight: bold;">
iptables -t nat -F</span><br style="font-weight: bold;"><span style="font-weight: bold;">iptables -A POSTROUTING -t nat -p all -s <a href="http://192.168.1.0/24">192.168.1.0/24</a> -o eth1 -j MASQUERADE</span><br style="font-weight: bold;">
<br>Configuração dos micros clientes:<br><br><span style="font-weight: bold;">IP: 192.168.1.x</span><br style="font-weight: bold;"><span style="font-weight: bold;">Máscara: <a href="http://255.255.255.240">
255.255.255.240</a></span><br style="font-weight: bold;"><span style="font-weight: bold;">Gateway: <a href="http://192.168.1.1">192.168.1.1</a></span><br style="font-weight: bold;"><span style="font-weight: bold;">
DNS Primário: <a href="http://10.10.1.253">10.10.1.253</a></span><br style="font-weight: bold;"><br>Colocando esta regra, surgem os seguintes problemas:<br><br>1º - se um micro da rede <a href="http://192.168.1.0">192.168.1.0
</a> (ex.: <a href="http://192.168.1.2">192.168.1.2</a>) quiser pingar a eth0 ou a eth1 do fedora, ele não consegue. <br><br>2º - se este mesmo micro <a href="http://192.168.1.2">192.168.1.2</a> quiser pingar o FreeBSD (<a href="http://10.10.1.253">
10.10.1.253</a>), ele consegue. Com a internet o ping também funciona, tanto pingando para IP quanto para nome. Mas, no browser, a internet não funciona.<br><br>Alguém pode me ajudar?<br>