Programming and Scripting :: Gateway easily?



Why without nat? I mean, it's easy to have it with nat..
With NAT it would only be some lines;
a "echo 1 > /proc/sys/net/ipv4/ip_forward", and some ip_tables lines..

Without nat; because I'm working on a server. It would be best to have own ip for server or else I would have to configure port forwarding too. ;)
Hm. Does it work if I create a bridge and add eth0 and wlan0 to it. Then get ip for the bridge and also lan ip (eg 192.168.0.123) for it. Then do: "echo 1 > /proc/sys/net/ipv4/ip_forward"?
:D

If that's the case, I would bridge the networks. I haven't actually done that though, so can't give you examples, but it's a kernel module and I bet there's a howto at tldp.org

Next Page...
original here.