Use ipchains and create following rules on the your linux machine having
real IP.

Regards
Zafar

**** Script for Masquerading *****

#!/bin/sh
#
# Setup IP Masquerading Policies
#
# Setup some handy variables
PRIVATENET="192.168.0.0/24"
PUBLICNET="0.0.0.0/0"

# Clear the current rule set
ipchains -F input
ipchains -F output
ipchains -F forward

# Masquerade all internal addresses sending packets
# to the public
ipchains -A forward -s $PRIVATENET -d $PUBLICNET -j MASQ

# Set the default Masquerading policy
ipchains -P forward DENY

# Set Default policies
ipchains -P input ACCEPT
ipchains -P output ACCEPT

# Set the Masquerading Timeout Values
ipchains -M -S 7200 0 0




----- Original Message -----
From: "harmit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 12:51 PM
Subject: MASQUERADING


> Hi
>
> How can I use masquerading on linux 6.2 box .I have only one real IP .
> Any help on this with steps  would behighly appreciated.
> TIA
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to