Re: dnat problem

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

 



On Sat, Jan 22, 2005 at 02:45:37PM -0500, Jason Opperisano wrote:
> On Sat, 2005-01-22 at 10:59, Pablo Allietti wrote:
> > hi all
> > 
> > i have a problem with dnat i have this struc.
> > 
> > 
> > 		|
> > 		|internet
> > 		|
> > 		Firewall 200.20.43.2
> > 		|
> > 		|
> > 		|
> > 		Server 192.168.1.143
> > 
> > 
> > and i have this rule in the firewall.
> > 
> > iptables  -t nat -A PREROUTING -i eth0 -p tcp --dport 2244  -j DNAT
> > --to-destination 192.168.1.143:22

thanks that is the solution.! :)    jaja nice signature.! Homer say
that.. i love homer


> > 
> > i supouse this rule make a dnat to server 192.... to ssh but nothing
> > happends
> > 
> > i do ssh -p2244 200.20.43.2  but nothing respond
> > 
> > what i miss ? :(
> 
> and you have a FORWARD rule that looks like:
> 
>   iptables -A FORWARD -i eth0 -p tcp -d 192.168.1.143 --dport 22 \
>     -j ACCEPT
> 
> yes?
> 
> -j
> 
> --
> "Kids, you tried your best and you failed miserably. The lesson is,
>  never try."
> 	--The Simpsons
> 
---end quoted text---

-- 


Pablo Allietti
LACNIC
--------------



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux