Hey everyone,
I really can’t put my head around why it is not yet working.
The scenario:
I have set up an Ubuntu server on ip 192.168.1.124 static, and i am trying to forward the ports 4571 and 25565, 4571 for ssh and 25565 for minecraft.
Three problems occur.
- I am not able to ssh to my Router itself even though i have set up a filter to accept port 22.
- Whenever i try to ssh to my server via juicessh for android i get connection failed (connection reset by peer) so this one seems to get past the router but for some reason gets blocked or dropped?
- i am not even able to access the minecraft server from my own computer sitting on ip 192.168.1.123.
My filter looks like this:
0 D ;;; special dummy rule to show fasttrack counters
chain=forward
1 chain=forward action=accept protocol=tcp dst-address=xxx.zzz.yyy.209 in-interface=ether1 dst-port=22 log=no log-prefix=“”
2 chain=forward action=accept protocol=tcp dst-address=xxx.zzz.yyy.209 in-interface=ether1 dst-port=25565 log=no log-prefix=“”
3 ;;; SSH Ubuntu Server
chain=forward action=accept protocol=tcp dst-address=xxx.zzz.yyy.209 in-interface=ether1 dst-port=4571 log=no log-prefix=“”
4 ;;; defconf: accept ICMP
chain=input action=accept protocol=icmp log=no log-prefix=“”
5 ;;; defconf: accept establieshed,related
chain=input action=accept connection-state=established,related log=no log-prefix=“”
6 ;;; defconf: fasttrack
chain=forward action=fasttrack-connection connection-state=established,related log=no log-prefix=“”
7 ;;; defconf: accept established,related
chain=forward action=accept connection-state=established,related log=no log-prefix=“”
8 ;;; allow l2tp
chain=input action=accept protocol=udp dst-port=1701 log=no log-prefix=“”
9 ;;; allow pptp
chain=input action=accept protocol=tcp dst-port=1723 log=no log-prefix=“”
10 ;;; allow sstp
chain=input action=accept protocol=tcp dst-port=443 log=no log-prefix=“”
11 ;;; defconf: drop all from WAN
chain=input action=drop in-interface=ether1 log=no log-prefix=“”
12 ;;; defconf: drop invalid
chain=forward action=drop connection-state=invalid log=no log-prefix=“”
13 ;;; defconf: drop all from WAN not DSTNATed
chain=forward action=drop connection-state=new connection-nat-state=!dstnat in-interface=ether1 log=no log-prefix=“”
And my NAT looks like this:
0 ;;; defconf: masquerade
chain=srcnat action=masquerade out-interface=ether1 log=no log-prefix=“”
1 chain=dstnat action=dst-nat to-addresses=192.168.1.124 to-ports=22 protocol=tcp dst-address=xxx.zzz.yyy.209 dst-port=4571 log=no log-prefix=“”
2 ;;; Ubuntu Server Minecraft tcp
chain=dstnat action=dst-nat to-addresses=192.168.1.124 to-ports=25565 protocol=tcp dst-address=xxx.zzz.yyy.209 dst-port=25565 log=no
log-prefix=“”
3 ;;; masq. vpn traffic
chain=srcnat action=masquerade src-address=192.168.89.0/24 log=no log-prefix=“”
I desperatly need help with this.
I have now sat everyday after work for the last week trying to figure this out looking at guides and trying but with no luck.
Thank you for at least taking the time to read my post.