LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 04-30-2020, 08:03 AM   #1
haseebraza93
LQ Newbie
 
Registered: Apr 2020
Posts: 2

Rep: Reputation: Disabled
How to route all traffic of LAN from shadowsocks client(Centos 7) to SS Server?


Use Case :

LAN Users->Switch->Cisco Router->SS Client-> SS Server

LAN Users means nodes of Office
Cisco Router is forwarding all traffic to SS client
SS Client is accepting all traffic but it's not forwarding traffic to SS server

(In this case traffic is going through client but not forwarding to Server but directly from client to Internet)

It is sured that client is connected with server because when i run the following command it gives me IP of Serve in results as below :

curl --socks5 127.0.0.1:1080 http://wtfismyip.com/json
{
"YourFuckingIPAddress": "111.111.111.111",
"YourFuckingLocation": "Mountain View, CA, United States",
"YourFuckingHostname": "237.205.211.130.bc.googleusercontent.com",
"YourFuckingISP": "Google Cloud",
"YourFuckingTorExit": false,
"YourFuckingCountryCode": "US"
}

curl --socks5 127.0.0.1:1080 http://httpbin.org/ip
{
"origin": "111.111.111.111, 111.111.111.111"
}

111.111.111.111 means LIVE IP of ShadowSocks SERVER

All i want to route all traffic of my nodes to go through SSClient to Server and then Internet.
 
Old 05-01-2020, 02:16 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
I would say you need to set http_proxy or similar on the client to use your ss proxy.

Do not post any messages that are obscene, vulgar, sexually-orientated, hateful, threatening, hostile or insulting.
 
Old 05-01-2020, 01:44 PM   #3
haseebraza93
LQ Newbie
 
Registered: Apr 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
I have tried following things but now working what i want
redsocks
proxychains
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Linux - Networking 2 10-11-2017 02:58 PM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Red Hat 1 10-09-2017 05:45 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration