Wednesday, December 10, 2014

use socat as socks helper to bypass firewall

*** information ***
- telnet server, mikrotik: 192.168.202.101
- socks server, : 192.168.202.1
- client: 10.0.3.250
- on telnet server filter subnet 10.0.3.0/24 from access into it

some application client does of support socks protocol, telnet, ftp, etc. so we can use socat to help this application send traffic through socks server

1- setup socks server see http://theamdara.blogspot.com/2014/12/create-socks-server-for-bypass-firewall.html

2- install socat and run it on client

root@c:/#apt-get install socat

- run the socat to use socks server, 192.168.202.1 and listent on locally on port 10023 that will route to telnet server 192.168.202.101 on port 23

user1@c:/$ socat TCP-LISTEN:10023 SOCKS:192.168.202.1:192.168.202.101:23

- to access telnet server using localhost port 10023
user1@c:/$ telnet localhost 10023



No comments:

Post a Comment