germain85 1 Posted ... Hi I want to configure port forward to my router.. and I don't know how with Awus Merlin... on router N66... Thanks Quote Share this post Link to post
zhang888 1066 Posted ... https://www.asus.com/support/faq/114093http://www.noip.com/support/knowledgebase/port-forwarding-on-asus-rc-ac66u/ Quote Hide zhang888's signature Hide all signatures Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees. Share this post Link to post
go558a83nk 364 Posted ... https://www.asus.com/support/faq/114093http://www.noip.com/support/knowledgebase/port-forwarding-on-asus-rc-ac66u/ assuming openvpn running on router have to use iptables like tomato and dd-wrt for TUN to LAN. the web GUI does WAN to LAN. if people are not running openvpn on router then we should discourage them from opening ports at all as it's a security hazard (correlation attack). anyway, this question gets asked about every other day. really tired of people not searching the forum. Quote Share this post Link to post
germain85 1 Posted ... Aug 20 00:09:05 rc_service: httpd 243:notify_rc start_vpnclient5Aug 20 00:09:05 kernel: tun: Universal TUN/TAP device driver, 1.6Aug 20 00:09:05 kernel: tun: © 1999-2004 Max Krasnyansky <maxk@qualcomm.com>Aug 20 00:09:05 openvpn[576]: OpenVPN 2.3.10 mipsel-unknown-linux-gnu [sSL (OpenSSL)] [LZO] [EPOLL] [MH] [iPv6] built on May 10 2016Aug 20 00:09:05 openvpn[576]: library versions: OpenSSL 1.0.2h 3 May 2016, LZO 2.08Aug 20 00:09:05 openvpn[578]: NOTE: the current --script-security setting may allow this configuration to call user-defined scriptsAug 20 00:09:05 openvpn[578]: Control Channel Authentication: using 'static.key' as a OpenVPN static key fileAug 20 00:09:05 openvpn[578]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 20 00:09:05 openvpn[578]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 20 00:09:05 openvpn[578]: Socket Buffers: R=[118784->118784] S=[118784->118784]Aug 20 00:09:06 openvpn[578]: UDPv4 link local: [undef]Aug 20 00:09:06 openvpn[578]: UDPv4 link remote: [AF_INET]71.19.252.113:443Aug 20 00:09:08 openvpn[578]: TLS: Initial packet from [AF_INET]71.19.252.113:443, sid=348ba18c 68484b8dAug 20 00:09:08 openvpn[578]: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent thisAug 20 00:09:08 openvpn[578]: VERIFY OK: depth=1, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=airvpn.org CA, emailAddress=info@airvpn.orgAug 20 00:09:08 openvpn[578]: Validating certificate key usageAug 20 00:09:08 openvpn[578]: ++ Certificate has key usage 00a0, expects 00a0Aug 20 00:09:08 openvpn[578]: VERIFY KU OKAug 20 00:09:08 openvpn[578]: Validating certificate extended key usageAug 20 00:09:08 openvpn[578]: ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server AuthenticationAug 20 00:09:08 openvpn[578]: VERIFY EKU OKAug 20 00:09:08 openvpn[578]: VERIFY OK: depth=0, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=server, emailAddress=info@airvpn.orgAug 20 00:09:14 openvpn[578]: Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit keyAug 20 00:09:14 openvpn[578]: Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 20 00:09:14 openvpn[578]: Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit keyAug 20 00:09:14 openvpn[578]: Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 20 00:09:14 openvpn[578]: Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 4096 bit RSAAug 20 00:09:14 openvpn[578]: [server] Peer Connection Initiated with [AF_INET]71.19.252.113:443Aug 20 00:09:16 openvpn[578]: SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)Aug 20 00:09:16 openvpn[578]: PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.4.0.1,comp-lzo no,route-gateway 10.4.0.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.4.33.143 255.255.0.0'Aug 20 00:09:16 openvpn[578]: OPTIONS IMPORT: timers and/or timeouts modifiedAug 20 00:09:16 openvpn[578]: OPTIONS IMPORT: LZO parms modifiedAug 20 00:09:16 openvpn[578]: OPTIONS IMPORT: --ifconfig/up options modifiedAug 20 00:09:16 openvpn[578]: OPTIONS IMPORT: route options modifiedAug 20 00:09:16 openvpn[578]: OPTIONS IMPORT: route-related options modifiedAug 20 00:09:16 openvpn[578]: OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modifiedAug 20 00:09:16 openvpn[578]: TUN/TAP device tun15 openedAug 20 00:09:16 openvpn[578]: TUN/TAP TX queue length set to 100Aug 20 00:09:16 openvpn[578]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0Aug 20 00:09:16 openvpn[578]: /usr/sbin/ip addr add dev tun15 10.4.33.143/16 broadcast 10.4.255.255 my nat start is: #!/bin/sh iptables -I FORWARD -i br0 -o tun15 -j ACCEPTiptables -I FORWARD -i tun15 -o br0 -j ACCEPTiptables -I FORWARD -i br0 -o vlan1 -j DROPiptables -I INPUT -i tun15 -j REJECTiptables -t nat -A POSTROUTING -o tun15 -j MASQUERADE iptables -I FORWARD -i tun15 -p udp -d 192.168.1.102 --dport 41232 -j ACCEPTiptables -I FORWARD -i tun15 -p tcp -d 192.168.1.102 --dport 41232 -j ACCEPTiptables -t nat -I PREROUTING -i tun15 -p tcp --dport 41232 -j DNAT --to-destination 192.168.1.102iptables -t nat -I PREROUTING -i tun15 -p udp --dport 41232 -j DNAT --to-destination 192.168.1.102 tun15 is client 5 on vpn asuswrt-merlin Quote Share this post Link to post
zhang888 1066 Posted ... The REJECT rule should be your last rule, otherwise it will match this rule and your next rules will not take effect.Move the last 5 rules to the top. Quote Hide zhang888's signature Hide all signatures Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees. Share this post Link to post
go558a83nk 364 Posted ... @germain85, Asus merlin openvpn client gui has an option for automatic firewall. there's no need to have a script running for more firewall stuff. and your port forwarding IP tables look correct. so it seems you DO know how to configure your router. Quote Share this post Link to post
germain85 1 Posted ... Thnks buddy!! after editing iptables Aug 20 11:38:42 rc_service: httpd 243:notify_rc start_vpnclient5Aug 20 11:38:42 kernel: tun: Universal TUN/TAP device driver, 1.6Aug 20 11:38:42 kernel: tun: © 1999-2004 Max Krasnyansky <maxk@qualcomm.com>Aug 20 11:38:42 openvpn[1166]: OpenVPN 2.3.10 mipsel-unknown-linux-gnu [sSL (OpenSSL)] [LZO] [EPOLL] [MH] [iPv6] built on May 10 2016Aug 20 11:38:42 openvpn[1166]: library versions: OpenSSL 1.0.2h 3 May 2016, LZO 2.08Aug 20 11:38:42 openvpn[1170]: NOTE: the current --script-security setting may allow this configuration to call user-defined scriptsAug 20 11:38:42 openvpn[1170]: Control Channel Authentication: using 'static.key' as a OpenVPN static key fileAug 20 11:38:42 openvpn[1170]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 20 11:38:42 openvpn[1170]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 20 11:38:42 openvpn[1170]: Socket Buffers: R=[118784->118784] S=[118784->118784]Aug 20 11:38:42 openvpn[1170]: UDPv4 link local: [undef]Aug 20 11:38:42 openvpn[1170]: UDPv4 link remote: [AF_INET]184.75.223.194:443Aug 20 11:38:42 openvpn[1170]: TLS: Initial packet from [AF_INET]184.75.223.194:443, sid=b29159d2 e18b09dfAug 20 11:38:42 openvpn[1170]: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent thisAug 20 11:38:42 openvpn[1170]: VERIFY OK: depth=1, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=airvpn.org CA, emailAddress=info@airvpn.orgAug 20 11:38:42 openvpn[1170]: Validating certificate key usageAug 20 11:38:42 openvpn[1170]: ++ Certificate has key usage 00a0, expects 00a0Aug 20 11:38:42 openvpn[1170]: VERIFY KU OKAug 20 11:38:42 openvpn[1170]: Validating certificate extended key usageAug 20 11:38:42 openvpn[1170]: ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server AuthenticationAug 20 11:38:42 openvpn[1170]: VERIFY EKU OKAug 20 11:38:42 openvpn[1170]: VERIFY OK: depth=0, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=server, emailAddress=info@airvpn.orgAug 20 11:38:51 openvpn[1170]: Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit keyAug 20 11:38:51 openvpn[1170]: Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 20 11:38:51 openvpn[1170]: Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit keyAug 20 11:38:51 openvpn[1170]: Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authenticationAug 20 11:38:54 openvpn[1170]: Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 4096 bit RSAAug 20 11:38:54 openvpn[1170]: [server] Peer Connection Initiated with [AF_INET]184.75.223.194:443Aug 20 11:38:56 openvpn[1170]: SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)Aug 20 11:38:56 openvpn[1170]: PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.4.0.1,comp-lzo no,route-gateway 10.4.0.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.4.52.91 255.255.0.0'Aug 20 11:38:56 openvpn[1170]: OPTIONS IMPORT: timers and/or timeouts modifiedAug 20 11:38:56 openvpn[1170]: OPTIONS IMPORT: LZO parms modifiedAug 20 11:38:56 openvpn[1170]: OPTIONS IMPORT: --ifconfig/up options modifiedAug 20 11:38:56 openvpn[1170]: OPTIONS IMPORT: route options modifiedAug 20 11:38:56 openvpn[1170]: OPTIONS IMPORT: route-related options modifiedAug 20 11:38:56 openvpn[1170]: OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modifiedAug 20 11:38:56 openvpn[1170]: TUN/TAP device tun15 openedAug 20 11:38:56 openvpn[1170]: TUN/TAP TX queue length set to 100Aug 20 11:38:56 openvpn[1170]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0Aug 20 11:38:56 openvpn[1170]: /usr/sbin/ip link set dev tun15 up mtu 1500Aug 20 11:38:56 rc_service: service 1225:notify_rc updateresolvAug 20 11:38:56 dnsmasq[1159]: read /etc/hosts - 5 addressesAug 20 11:38:56 dnsmasq[1159]: using nameserver 10.4.0.1#53Aug 20 11:39:02 openvpn[1170]: /usr/sbin/ip route add 184.75.223.194/32 via ( my real ip)Aug 20 11:39:02 openvpn[1170]: /usr/sbin/ip route add 0.0.0.0/1 via 10.4.0.1Aug 20 11:39:02 openvpn[1170]: /usr/sbin/ip route add 128.0.0.0/1 via 10.4.0.1Aug 20 11:39:02 openvpn-routing: Skipping, client 5 not in routing policy modeAug 20 11:39:02 openvpn[1170]: Initialization Sequence Completed Quote Share this post Link to post
germain85 1 Posted ... @germain85, Asus merlin openvpn client gui has an option for automatic firewall. there's no need to have a script running for more firewall stuff. and your port forwarding IP tables look correct. so it seems you DO know how to configure your router. lol! Maybe! 1 KennethVPN reacted to this Quote Share this post Link to post