All of lore.kernel.org
 help / color / mirror / Atom feed
* Ports
@ 2002-09-09 17:30 Mattia Martinello
  2002-09-09 17:38 ` Ports Maciej Soltysiak
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Mattia Martinello @ 2002-09-09 17:30 UTC (permalink / raw)
  To: netfilter

Could I allow a packet to transit in the FORWARD chain (under 
masquerading) from some host (or any host) to a host on a port?

iptables -A FORWARD -p tcp -s 0.0.0.0/0 -d 192.168.2.101 -dport 80 -j ACCEPT

don't work (only one -d is allowed). What can I do?

Thank you very much
Bye
Mattia



^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <20050307032130.C195512043@sc8-sf-spam2.sourceforge.net>]
* Ports
@ 2008-11-20  7:34 Mike
  2008-11-20 12:27 ` Ports Paul Evans
  2008-11-20 19:34 ` Ports Pascal Hambourg
  0 siblings, 2 replies; 15+ messages in thread
From: Mike @ 2008-11-20  7:34 UTC (permalink / raw)
  To: netfilter

I am trying to port forward ssh portX to portY on same box

I am listening on both ports using tcpdump.

On the same machine, I telnet "localhost portX" or "portY"  results:
NOTHING seen by tcpdump screen .
I do the same in respect to portY.  I also telnet "IP_number portX or
portY  results: NOTHING seen by tcpdump screen.

BTW, on the ssh-server side, I have portX and portY accepting connections.

This is what I have come up with after some google-search.

iptables -t nat -A PREROUTING -p tcp --dport portX -j DNAT --to :portY

No luck,

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

end of thread, other threads:[~2008-11-20 19:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-09 17:30 Ports Mattia Martinello
2002-09-09 17:38 ` Ports Maciej Soltysiak
2002-09-09 17:41 ` Ports Ramin Alidousti
2002-09-09 18:00   ` Ports Mattia Martinello
2002-09-09 18:39 ` Ports Antony Stone
     [not found] <20050307032130.C195512043@sc8-sf-spam2.sourceforge.net>
2005-03-07  3:28 ` ports maru
  -- strict thread matches above, loose matches on Subject: below --
2008-11-20  7:34 Ports Mike
2008-11-20 12:27 ` Ports Paul Evans
2008-11-20 18:00   ` Ports Mike
2008-11-20 18:07     ` Ports Paul Evans
2008-11-20 18:24       ` Ports Mike
2008-11-20 18:29         ` Ports Paul Evans
2008-11-20 18:35           ` Ports Mike
2008-11-20 19:49         ` Ports Pascal Hambourg
2008-11-20 19:34 ` Ports Pascal Hambourg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.