edd wrote:
> Robert wrote:
>
>> On Tue, 17 Jan 2006 20:09:51 +0800, jsuthan wrote:
>>
>>>> Is the App that you want to connect to from the internet even
>>>> listening on
>>>> port 20?
>>>
>>> The port is open at 192.168.1.10 port 20 and not at 172.16.1.10. I
>>> try to connect from 172.16.1.10 and not from internet_ip.
>>
>>
>> So how are you trying to connect? What command/s are you giving/using?
>>
>>
> google it :P or read the manual
well linux is good os.. problem is that I hv a complex firewall
configuration. I added that line at bottom while communication already
chopped off at top of iptables statement. I resolve it by adding a new
table for iptables.
iptables -N ript
for cif in $slan
do
for port in $sport
do
iptables -A ript -i eth0 -p tcp -s $cif -d $ipwan --dport $port -j ACCEPT
iptables -A ript -i eth0 -p udp -s $cif -d $ipwan --dport $port -j ACCEPT
done
iptables -A ript -i eth0 -s $cif -d $localnet -j DROP
iptables -A ript -i eth0 -s $cif -d $everywhere -j ACCEPT
done
then inject this new table after passing filtering and tweaking.
--
jsuthan
Zues linux team
http://www.mypulau.com