On Thu, 06.03.08 20:15, Lennart Poettering (mzerqung@xxxxxxxxxxx) wrote: > Of course, you two are absolutely correct. My bad. I guess I shouldn't > claim things without checking them first ;-) > > But still, enabling this kind of routing on the gateway is just a > matter of doing: > > echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp > echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding > > Right? Of course, NAT is still missing, so let's add another line here: iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp Of course, it would be neat to do NAT only for packets coming from eth0. But I fear that's not that easily done without resorting to -j MARK and suchlike. Lennart -- Lennart Poettering Red Hat, Inc. lennart [at] poettering [dot] net ICQ# 11060553 http://0pointer.net/lennart/ GnuPG 0x1A015CC4 -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list