"in LAN" routing problem
I have a working router and some ports are forwarded to PCs in the network.
A redirecting rule: (router):4662 -> 192.168.227.12:4662 Now i can connect from the world to the machine behind the router(217.75.151.157 and 192.168.227.20) (jule is a machine not from my LAN) Code:
joro@jule:~$ telnet 217.75.151.157 4662 Code:
joro@malkia:~$ telnet 217.75.151.157 4662 |
here are the important 2 lines in my script:
Code:
iptables -t nat -A PREROUTING -p tcp --dport 4662 -j DNAT --to-destination 192.168.227.12:4662 Code:
# Flush NAT in the beginning: |
Probably more down to your router than the system. Try connecting to the internal IP address; if it works, it's the router.
Carl. |
i can connect using the local IP
Code:
root@malkia:~# telnet 192.168.227.12 4662 |
Sounds like it's not the iptables but that the router won't allow a reflective connection, i.e. internal -> external -> internal.
I've found that several routers can't handle this type of connection. Carl. |
May be, I dont know. Any ideas how to solve my problem?
Joro |
All times are GMT -5. The time now is 12:23 PM. |