LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2020, 10:37 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 2,028
Blog Entries: 20

Rep: Reputation: 128Reputation: 128
tcpdump by uid


is there a way to dump all the IP traffic from a given userid? i can do the dumping as root. i can give either the user name string or the user id number as appropriate.

the purpose is to collect all possible IP addresses a given website might be using. i want to route all traffic going to them to go through a specific VPN instead of the usual default.

the idea is to, at first, route everything through that VPN and access them only from that specific user (i will be logging in as that user instead of using sudo).
 
Old 06-02-2020, 01:41 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,612

Rep: Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741
I would try to set a proxy for that user (if I understand well)
 
Old 06-02-2020, 05:31 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 2,028

Original Poster
Blog Entries: 20

Rep: Reputation: 128Reputation: 128
would a proxy also include web socket traffic (non-HTTP) that JavaScript does? in other words, do JavaScript apps connect to host names, IP addresses, or the server that the JavaScript came from?
 
Old 06-03-2020, 12:35 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,612

Rep: Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741Reputation: 4741
that depends on the configuration and sometimes on the used app too, but in general yes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between UID and effective UID chakribobby Linux - Newbie 2 10-23-2007 10:56 AM
Effective UID and real UID Milosevic Linux - General 1 01-06-2007 03:01 PM
Effective UID and Real UID Milosevic Linux - Newbie 1 01-06-2007 10:41 AM
Changing the UID of a Physical Volume to a specific UID jambraun Linux - Newbie 2 02-09-2006 02:34 PM
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:06 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration