ok.. (anyway just to inform you. obvoiusly I can surf from http proxy pc that is 172.27.153.206 - in this pc i have a script for opening port 4040:
netsh interface portproxy add v4tov4 listenport=4040 connectaddress=proxy connectport=8080).
I post everything after setting verb4 (server2 is called serverproxy.conf and client2 is called clientproxy.ovpn)
The problem is that i cannot surf after VPN estabilished.. Connected but no surfing on the Web..
I posted everything here down.. please help me guys!! 🙂 thanksssss 🙂 🙂 🙂
serverproxy.conf
port 443
proto tcp-server
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 4
clientproxy.ovpn
client
dev tun
proto tcp-client
remote 185.115.243.227 443
http-proxy 172.27.153.206 4040
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
comp-lzo
verb 4
set CLIENT_CERT 0
IPTABLES-RULE2:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source 172.27.153.206
( 172.27.153.206=proxy http)
I tried also because port is 4040 but it showing error
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source 172.27.153.206:4040
( 172.27.153.206=proxy http)
log
2016-05-07 19:10:02 ----- OpenVPN Start -----
OpenVPN core 3.0 ios armv7s thumb2 32-bit
2016-05-07 19:10:02 UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [persist-key]
7 [persist-tun]
9 [mute-replay-warnings]
12 [verb] [4]
13 [set] [CLIENT_CERT] [0]
2016-05-07 19:10:02 LZO-ASYM init swap=0 asym=0
2016-05-07 19:10:02 EVENT: RESOLVE
2016-05-07 19:10:02 Contacting 172.27.153.206:4040 via HTTP Proxy
2016-05-07 19:10:02 EVENT: WAIT_PROXY
2016-05-07 19:10:02 SetTunnelSocket returned 1
2016-05-07 19:10:02 EVENT: WAIT
2016-05-07 19:10:02 TO PROXY: CONNECT 185.115.243.227:443 HTTP/1.0
Host: 185.115.243.227
2016-05-07 19:10:03 FROM PROXY: HTTP/1.1 200 Connection established
2016-05-07 19:10:03 Connecting to 185.115.243.227:443 (172.27.153.206) via TCPv4-via-HTTP
2016-05-07 19:10:04 TCP recv EOF
2016-05-07 19:10:04 Transport Error: Transport error on '185.115.243.227' via HTTP proxy 172.27.153.206:4040 : NETWORK_EOF_ERROR
2016-05-07 19:10:04 EVENT: TRANSPORT_ERROR Transport error on '185.115.243.227' via HTTP proxy 172.27.153.206:4040 : NETWORK_EOF_ERROR [ERR]
2016-05-07 19:10:04 Client terminated, restarting in 5...
2016-05-07 19:10:07 RECONNECT TEST: Internet:ReachableViaWiFi/-R ------- WiFi:ReachableViaWiFi/-R ------d
2016-05-07 19:10:09 EVENT: RECONNECTING
2016-05-07 19:10:09 LZO-ASYM init swap=0 asym=0
2016-05-07 19:10:09 Contacting 172.27.153.206:4040 via HTTP Proxy
2016-05-07 19:10:09 EVENT: WAIT_PROXY
2016-05-07 19:10:09 SetTunnelSocket returned 1
2016-05-07 19:10:09 EVENT: WAIT
2016-05-07 19:10:09 TO PROXY: CONNECT 185.115.243.227:443 HTTP/1.0
Host: 185.115.243.227
2016-05-07 19:10:11 FROM PROXY: HTTP/1.1 200 Connection established
2016-05-07 19:10:11 Connecting to 185.115.243.227:443 (172.27.153.206) via TCPv4-via-HTTP
2016-05-07 19:10:12 EVENT: CONNECTING
2016-05-07 19:10:12 Tunnel Options:V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2016-05-07 19:10:12 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.5-177
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2016-05-07 19:10:26 VERIFY OK: depth=1
cert. version : 3
serial number : 93:8D:1A:CD:64:84:97:C9
issuer name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
subject name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
issued on : 2016-04-26 17:43:50
expires on : 2026-04-24 17:43:50
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=true
2016-05-07 19:10:26 VERIFY OK: depth=0
cert. version : 3
serial number : 01
issuer name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=ServerBabbo CA, ??=server, emailAddress=me@myhost.mydomain
subject name : C=NL, ST=AM, L=Amsterdam, O=ServerBabbo, OU=MyOrganizationalUnit, CN=server, ??=server, emailAddress=me@myhost.mydomain
issued on : 2016-04-26 17:44:12
expires on : 2026-04-24 17:44:12
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=false
subject alt name : server
cert. type : SSL Server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication
2016-05-07 19:10:35 SSL Handshake: TLSv1.0/TLS-DHE-RSA-WITH-AES-256-CBC-SHA
2016-05-07 19:10:35 Session is ACTIVE
2016-05-07 19:10:35 EVENT: GET_CONFIG
2016-05-07 19:10:35 Sending PUSH_REQUEST to server...
2016-05-07 19:10:36 Sending PUSH_REQUEST to server...
2016-05-07 19:10:37 OPTIONS:
0 [redirect-gateway] [def1] [bypass-dhcp]
1 [dhcp-option] [DNS] [8.8.8.8]
2 [route] [10.11.0.1]
3 [topology] [net30]
4 [ping] [10]
5 [ping-restart] [120]
6 [ifconfig] [10.11.0.6] [10.11.0.5]
2016-05-07 19:10:37 LZO-ASYM init swap=0 asym=0
2016-05-07 19:10:37 EVENT: ASSIGN_IP
2016-05-07 19:10:37 Connected via tun
2016-05-07 19:10:37 EVENT: CONNECTED @185.115.243.227:443 (172.27.153.206) via /TCPv4-via-HTTP on tun/10.11.0.6/
2016-05-07 19:10:37 SetStatus Connected
2016-05-07 19:12:03 TUN reset routes
2016-05-07 19:12:03 EVENT: DISCONNECTED
2016-05-07 19:12:03 Raw stats on disconnect:
BYTES_IN : 6245
BYTES_OUT : 26320
PACKETS_IN : 36
PACKETS_OUT : 300
TUN_BYTES_IN : 13040
TUN_PACKETS_IN : 240
NETWORK_EOF_ERROR : 1
TRANSPORT_ERROR : 1
N_RECONNECT : 1
2016-05-07 19:12:03 Performance stats on disconnect:
CPU usage (microseconds): 443128
Tunnel compression ratio (downlink): inf
Network bytes per CPU second: 73488
Tunnel bytes per CPU second: 29427
2016-05-07 19:12:03 ----- OpenVPN Stop -----