Hello:
Since past few days I have been trying to get MASQ with
iptables work. I have installed RedHat 7.1 on a system
with 64 MB RAM with 1 GB Harddisk and Pentium 100 Mhz
CPU.
I tried setting up MASQ using IP Chains on RedHat 7.0.
It works perfectly fine. I then upgraded to RH7.1 and
tried getting MASQ work with iptables but without any
luck.
I have a wireless broadband connection with static
ip address. I have two NICs, one facing internet and
other facing my local area network. eth0 is facing
my Local area network and eth1 is facing the internet.
Here is what my script file contains:
======
# - Enabling packet forwarding in the kernel
echo "1" > /proc/sys/net/ipv4/ip_forward
# - Internal IP Address range
INT_NET="200.200.200.0/24"
# - External IP Address
EXT_IP="64.110.96.176"
# - Empty the chains
$IPTABLES -F
$IPTABLES -t nat -F
# - Default policy - Drop everything"
$IPTABLES -P INPUT DROP
$IPTABLES -P FORWARD DROP
$IPTABLES -P OUTPUT ACCEPT
# - MASQ all internal traffic out to the Internet
$IPTABLES -t nat -A POSTROUTING -o eth1 -s $INT_IP -j SNAT --to-source $EXT_IP
======
I somehow still not able to get this thing working. Don't know
where I am going wrong. Please help
Thanks,
...Rohit
TransLogic Systems
5th Floor, Amogh Plaza, Greenlands,
Hyderabad, AP - 500 016, INDIA
Ph: 91.40.3401795, Fax: 91.40.3407943
www.translogicsys.com
Since past few days I have been trying to get MASQ with
iptables work. I have installed RedHat 7.1 on a system
with 64 MB RAM with 1 GB Harddisk and Pentium 100 Mhz
CPU.
I tried setting up MASQ using IP Chains on RedHat 7.0.
It works perfectly fine. I then upgraded to RH7.1 and
tried getting MASQ work with iptables but without any
luck.
I have a wireless broadband connection with static
ip address. I have two NICs, one facing internet and
other facing my local area network. eth0 is facing
my Local area network and eth1 is facing the internet.
Here is what my script file contains:
======
# - Enabling packet forwarding in the kernel
echo "1" > /proc/sys/net/ipv4/ip_forward
# - Internal IP Address range
INT_NET="200.200.200.0/24"
# - External IP Address
EXT_IP="64.110.96.176"
# - Empty the chains
$IPTABLES -F
$IPTABLES -t nat -F
# - Default policy - Drop everything"
$IPTABLES -P INPUT DROP
$IPTABLES -P FORWARD DROP
$IPTABLES -P OUTPUT ACCEPT
# - MASQ all internal traffic out to the Internet
$IPTABLES -t nat -A POSTROUTING -o eth1 -s $INT_IP -j SNAT --to-source $EXT_IP
======
I somehow still not able to get this thing working. Don't know
where I am going wrong. Please help
Thanks,
...Rohit
TransLogic Systems
5th Floor, Amogh Plaza, Greenlands,
Hyderabad, AP - 500 016, INDIA
Ph: 91.40.3401795, Fax: 91.40.3407943
www.translogicsys.com