[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Iptables question



For firewall relative question there's another, more specific, mail list:

debian-firewall@lists.debian.org

Anyway, if you are using ppp to connect to your ISP, the ppp0 interface
should have a public IP address not a private one like 192.168.0.10. In
order to enable kernel ipv4 fowarding you must change:

echo 1 > /proc/sys/net/ipv4/ip_forward

echo 1 > /proc/sys/net/ipv4/conf/all/forwarding

Then you should use NAT with iptables to share your internet connection
with a LAN.


I Rattan wrote:
> 
> I asked about a modem dialin server problem. I saw
> no response, so, I rephrase it.
> 
> The Linux box is connected to Internet on 141.209.169.x
> 
> The dialin ppp (Linux end) ipaddr is 192.168.0.10
> The dialing client gets ipaddr       192.168.0.11
> 
> How do I make iptables to forward form 192.168.x.x
> to 141.209.169.x (looking for rules form ppp0 to eth0)?
> 
> -ishwar
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: