Linux Netfilter discussions
 help / color / mirror / Atom feed
* Trouble shooting for port forwarding , Want to make sure port is forwarded
@ 2006-08-01  9:42 John Joseph
  2006-08-01  9:49 ` Guillaume
  2006-08-01 10:23 ` Pascal Hambourg
  0 siblings, 2 replies; 3+ messages in thread
From: John Joseph @ 2006-08-01  9:42 UTC (permalink / raw)
  To: Netfilter IPtableMailinglist


Hi 
    For the purpose of trouble shooting  , one  setup
which I had done  for redirecting port 110 to port
8110 ( same machine)  . For this purpose   I gave the
command as 

iptables -t nat -A PREROUTING  -p tcp --dport 110 -j
REDIRECT --to-port  8110

   Now after this . When I do a tcpdump for port 8110
, I do not get any results , when I  access port 110 
                
        Since the tcpdump results for  port 8110  is
not  seen , what can we conclude from , Is port
forwarding happening here ?
                      Thanks 
                            Joseph John 


		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trouble shooting for port forwarding , Want to make sure port is forwarded
  2006-08-01  9:42 Trouble shooting for port forwarding , Want to make sure port is forwarded John Joseph
@ 2006-08-01  9:49 ` Guillaume
  2006-08-01 10:23 ` Pascal Hambourg
  1 sibling, 0 replies; 3+ messages in thread
From: Guillaume @ 2006-08-01  9:49 UTC (permalink / raw)
  To: Netfilter IPtableMailinglist

John Joseph wrote:
> Hi 
>     For the purpose of trouble shooting  , one  setup
> which I had done  for redirecting port 110 to port
> 8110 ( same machine)  . For this purpose   I gave the
> command as 
> 
> iptables -t nat -A PREROUTING  -p tcp --dport 110 -j
> REDIRECT --to-port  8110
> 
>    Now after this . When I do a tcpdump for port 8110
> , I do not get any results , when I  access port 110 
>                 
>         Since the tcpdump results for  port 8110  is
> not  seen , what can we conclude from , Is port
> forwarding happening here ?
>                       Thanks 
>                             Joseph John 
> 
> 
> 		
> ___________________________________________________________ 
> Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The Wall Street Journal 
> http://uk.docs.yahoo.com/nowyoucan.html
> 

Hi,

After enabling a dnat traffic, you need to allow it in the "filter" 
table with a rule that look like this:
iptables -t filter -A INPUT -p tcp --dport 8110 -j ACCEPT

Regards
Guillaume


-- 
Guillaume
E-mail: silencer_<at>_free-4ever_<dot>_net
Blog: http://guillaume.free-4ever.net
----
Site: http://www.free-4ever.net


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trouble shooting for port forwarding , Want to make sure port is forwarded
  2006-08-01  9:42 Trouble shooting for port forwarding , Want to make sure port is forwarded John Joseph
  2006-08-01  9:49 ` Guillaume
@ 2006-08-01 10:23 ` Pascal Hambourg
  1 sibling, 0 replies; 3+ messages in thread
From: Pascal Hambourg @ 2006-08-01 10:23 UTC (permalink / raw)
  To: Netfilter IPtableMailinglist

Hello,

John Joseph a écrit :
> Hi 
>     For the purpose of trouble shooting  , one  setup
> which I had done  for redirecting port 110 to port
> 8110 ( same machine)  . For this purpose   I gave the
> command as 
> 
> iptables -t nat -A PREROUTING  -p tcp --dport 110 -j
> REDIRECT --to-port  8110
> 
>    Now after this . When I do a tcpdump for port 8110
> , I do not get any results , when I  access port 110 

This is normal. Tcpdump sees the incoming original packets when they 
arrive at the interface, before they are DNATed or REDIRECTed by 
iptables in the PREROUTING chain.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-01 10:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-01  9:42 Trouble shooting for port forwarding , Want to make sure port is forwarded John Joseph
2006-08-01  9:49 ` Guillaume
2006-08-01 10:23 ` Pascal Hambourg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox