Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Problems With Iptables Rules
post Jun 5 2004, 06:48 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 5-June 04
Member No.: 3,097

Hi. I'm using my debian 3.0 (2.4.26) box as adsl router and firewall and i tryed to use this rules Almost everything works as supposed to but this one part i can't get working. So opening ports on local linux machine works but when i want to route from my router box to my windows computer that rule doesn't work.
From script :
# If you would like to forward specific ports to other machines
# on your home network, edit and uncomment the rules below. They are
# currently set up to forward port 25 & 53 (Mail & DNS) to
# Anything incoming over your $INT through your gateway will
# be automatically redirected invisibly to port 25 & 53 on
#$IPT -t nat -A PREROUTING -i $INT -p tcp --dport 25 -j DNAT --to
#$IPT -t nat -A PREROUTING -i $INT -p tcp --dport 53 -j DNAT --to
#$IPT -t nat -A PREROUTING -i $INT -p udp --dport 53 -j DNAT --to

# These two redirect a block of ports, in both udp and tcp.
#$IPT -t nat -A PREROUTING -i $INT -p tcp --dport 2300:2400 -j DNAT --to
#$IPT -t nat -A PREROUTING -i $INT -p udp --dport 2300:2400 -j DNAT --to


so i wanted on my windows box to open two ports 113 and 3389 so i entered these rules :

$IPT -t nat -A PREROUTING -i $INT -p tcp --dport 3389 -j DNAT --to
$IPT -t nat -A PREROUTING -i $INT -p tcp --dport 113 -j DNAT --to

and it doesn't seem to work i can't send or recive ident requests or i can connect with remote windows to my windows machine, before i had simple rules
like drop ppp0 and then i opened few local ports and for ident i used this rule
iptables -t nat -A PREROUTING -s 0/0 -p tcp --dport 113 -j DNAT -i ppp0 --to-destination
Remote screen i can fix with redir open port on linux router and then redir it to windows that works, but for ident it says cannot bind and i would rather use like rule in iptables than use redir.
thx in advance for help i hope somebody will manage to figure out this problem.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th July 2018 - 10:14 AM