Consulting some redirect port with windows to a iptables firewall

Consulting some redirect port with windows to a iptables firewall

Secure Home | Search | About
 Networking Firewalls    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Consulting some redirect port with windows to a iptables firewall c4y0 11-05-2004
Posted by c4y0 on November 5, 2004, 10:26 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi!

I have a firewall with iptables redirecting some port to a LAN machine.

I'm using this rules:

10.1.1.2= ip LAN machine

===============================================================
iptables -A INPUT -p tcp --dport 2021 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 2021 -j DNAT --to
10.1.1.2:2021
iptables -A FORWARD -i eth0 -p tcp -d 10.1.1.2 --dport 2021 -j
ACCEPT

iptables -A INPUT -p tcp --dport 3333 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 3333 -j DNAT --to
10.1.1.2:3333
iptables -A FORWARD -i eth0 -p tcp -d 10.1.1.2 --dport 3333 -j
ACCEPT

iptables -A INPUT -p udp --dport 2001 -j ACCEPT
iptables -t nat -A PREROUTING -p udp -i eth0 --dport 2001 -j DNAT --to
10.1.1.2:2001
iptables -A FORWARD -i eth0 -p udp -d 10.1.1.2 --dport 2021 -j
ACCEPT

==============================================================

When i consult the external IP thats ports with telnet in windows from
outside, can obtain response; but when consult with telnet in linux from
outside, i obtain satisfatory response.

I cant understand what happen!!!!! exist some differences between
windows and linux telnet? or i need make some change in the firewall
rules (i dont think so).

Thanks for your help!

Bye
obtain response;


Posted by Micheal Robert Zium on November 5, 2004, 11:42 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
c4y0 wrote:

>iptables -A INPUT -p tcp --dport 2021 -j ACCEPT
>iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 2021 -j DNAT --to
10.1.1.2:2021
>iptables -A FORWARD -i eth0 -p tcp -d 10.1.1.2 --dport 2021 -j ACCEPT

You need to decide what you want to do. Accept those ports into the
firewall itself, or forward it to your LAN computer. I suspect using
the last two lines is what you want.



Similar ThreadsPosted
iptables port forwarding - port is filtered, needs to be open March 11, 2005, 4:15 pm
IPTables for windows December 6, 2006, 5:23 am
mail redirect November 2, 2005, 3:33 pm
iptables port forwarding not working September 14, 2005, 5:23 pm
IPTables port forwarding issues March 27, 2007, 5:14 am
Applying iptables firewall rules: iptables-restore: line 19 failed August 31, 2005, 2:58 am
Redirect outside traffic on a specific internal address on pix506 July 21, 2004, 6:56 am
Re: problems using different different FTP port with windows firewall January 3, 2008, 2:40 pm
Re: problems using different different FTP port with windows firewall January 4, 2008, 3:13 am
Azureus port problem for Torrent with windows firewall March 12, 2006, 3:06 pm

The site map in XML format XML site map

Contact Us | Privacy Policy