Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables & NAT & IPSEC can ping but cannot telnet ?

Reply
Thread Tools Display Modes

iptables & NAT & IPSEC can ping but cannot telnet ?

 
 
mike
Guest
Posts: n/a

 
      02-18-2005, 03:02 AM
Hi
I had a linux box[A](with NAT but no IPSEC) setup ppp dial to ISP.
And another linux box[B] used IPSEC behind box[A].
I forward any input package from box[A] to box[B](192.168.1.10).

# echo "1" > /proc/sys/net/ipv4/ip_forword
# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
# iptables -t nat -A PREROUTING -p all -i ppp0 -j DNAT \
--to-destination 192.168.1.10

When box[A] got an IP for example (170.8.23.33) from ISP.
I ping box[A] from Internet with other linux box[C]
it also with IPSEC it's OK.
But when I try to telnet to box[A] from box[C] the telnet
show "Connection timed out" messages.
Why ??
How can I do to make the telnet work.
Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can ping but cannot telnet (about VirtualBox) Archmage Linux Networking 1 02-03-2009 02:29 AM
Can ping but cannot telnet,http,etc. Archmage Network Routers 0 02-01-2009 05:26 AM
can telnet but not ping Dho Linux Networking 6 05-16-2006 10:50 PM
Help : Mandrake 9.2 Shorewall, can't telnet or ssh.. can ping though! Dave Linux Networking 1 03-05-2004 08:49 AM
WWW, telnet, everything works. Except ping. Patrick Linux Networking 8 01-17-2004 07:24 AM



1 2 3 4 5 6 7 8 9 10 11