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

Netfilter Port Forwarding Problem

Hi all,

I have 2 internet connections ip $ipinet1 for other
traffics and $ipinet2 for mail it works properly.
I want to allow the connection from internet connect
to my local web server( via $ipinet1 so I
do port forwarding

iptables -A PREROUTING -t nat -i $ifinet1  -d $ipinet1
-p tcp --dport 80 -j DNAT  --to

I allow FORWARD Rule from firewall to my local

iptables -A FORWARD -m state --state

iptables -A FORWARD -p tcp --dport 80 -i $ifinet1 -o
$iflocalnet -j ACCEPT

I don't know why it does work? if you have any idea
please help.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

Reply to: