The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 ipnat port forwarding not working
Author: Marco Raposo 
Date:   14-08-00 12:55

I've posted a question earlier.
I was trying to execute an one to one mapping. I want an internal machine referenced as "Services machine" to receive packets target to IP x.x.x.86 while my gateway external interface has IP x.x.x.84
The answer was to assign to my external NIC a secondary IP. (THANKS STU)

I've done that and now i'm able to ping my "internal machine" by is assigned "external" IP. In detail, now i ping x.x.x.86, the frame is "captured" by my external interface with IP x.x.x.84 and them forwarded to the right machine. However, a request no any service won't work... it seems that the IP layer is working, but not the TCP/UDP layer.

________________ NATRULES __________________

map rl0 ->
bimap rl0 ->

I've then tried a different approach and removed the bimap rule and tried to redirect the telnet port from de gateway machine to my internal machine as follows:

________________ NATRULES __________________

map rl0 ->

rdr rl0 port 23 -> port 23 tcp/udp

And the problem remains... it seems that i'm getting the redirection done, then i get no answer from the port. This behavior is apparently the same, no TCP/UDP layer forwarding/response.

______________ IP nat -l output __________________

List of active MAP/Redirect filters:
map rl0 ->
rdr rl0 port 23 -> port 23 tcp/udp

List of active sessions:
RDR 23 <- -> 23 [ 2376]
MAP 4246 <- -> 20002 [ 22]

Any suggestions?

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 ipnat port forwarding not working   new
Marco Raposo 14-08-00 12:55 
 RE: ipnat port forwarding not working   new
Dan Langille 14-08-00 22:13 
 RE: ipnat port forwarding not working   new
Stu 17-08-00 13:35 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum