On Wed, 25 Feb 2004 06:57:22 -0800, PullnOutHair wrote:
> This is my network setup as it stands.
>
> ************
> * firewall * 10.0.0.1
> ************
> |
> ----------------------------
> | | ..... |
> | 10.0.0.3 10.0.0.254
> |
> ******************10.0.0.2
> *linux ppp server*
> ******************10.0.1.1
> |
> ------------------------------------
> | | .... |
> 10.0.1.2 10.0.1.3 10.0.0.254
>
> where the 10.0.1.xxx subnet is a ppp subnet with 200+ clients all
> connected via modems. Currently I can get the ppp link up and running
> and I can ping the ppp server but cann't get to anything outside of
> that. I need to run NAT so that I can access the ppp client machines
> from inside the original 10.0.0.xxx subnet. Are there any great
> tutorials or How-to's that relate? I haven't found any relevant docs
> yet. Also is there a way to use diald on the server so that it will
> call any of the clients when they have traffic? I have seen how to
> make the client call the server when there is traffic but is there a
> way to reverse this to 250+ different phone numbers?
Enable ip forwarding on your ppp server.
echo 1 > /proc/sys/net/ipv4/ip_forward
Enable SNAT on the ppp server.
iptables -t nat -A POSTROUTING -i $EXTIF -j SNAT --to 10.0.0.2
|