question about VPN killswitch using Linux iptables rules - eBay Suspended & PayPal Limited Forums
eBay Suspension & PayPal Limited Forums  
Join Today
Register Subscribe
     

Registration is fast, simple and absolutely free so please, join our community today!


Go Back   Home > Stealth Topics > IP Address

IP Address Changing your IP address, multiple IPs, VPNs, hiding your IP, phone tethering, MiFi devices, hotspots and more.

Reply
 
Thread Tools
  #1  
Old 07-12-2017
nate's Avatar
Senior Member
 
Join Date: Jul 2016
Posts: 990
Thanks: 169
Thanked 412 Times in 270 Posts
Activity: 1%
Longevity: 45%
iTrader: (0)
Default question about VPN killswitch using Linux iptables rules

I guessing its a long shot that I'll get a answer for this one but I figured I'd give it a shot.

I'm in the process of figuring this out with using trial and error. I've yet to find a complete template for setting up iptables for a killswitch online. I'm setting this up on Chromium OS run on vmware.

Chromium already has L2TP/IPsec. As far as I can tell the only way to set up a killswitch is through shell using iptables.

I get the jest of it... but I'm not sure about the exact scripts. Google results give all different answers.

deny all outgoing and incoming by

iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP


make an exception for network adapter by

allow out on ppp0

iptables -A OUTPUT -o ppp0 -p tcp -j ACCEPT ?

allow in on ppp0

iptables -A INPUT -i ppp0 -p tcp -j ACCEPT ?

Make an exception from any ip address to the ip address of the server so I can connect to it

iptables -I OUTPUT -o eth0 -d 123.123.123.123 -j ACCEPT ?

then block all ipv6

?

Hopefully someone here has done this already or has mad networking skills and can help with the scripts. Chrome OS uses iptables v.1.4.21 which is pretty universal although I haven't been able to find an exact example of this configuration online.

Last edited by nate; 07-12-2017 at 03:38 PM.
Reply With Quote
The complete step-by-step guide to get back to selling today!

  #2  
Old 07-12-2017
nate's Avatar
Senior Member
Threadstarter  
 
Join Date: Jul 2016
Posts: 990
Thanks: 169
Thanked 412 Times in 270 Posts
Activity: 1%
Longevity: 45%
iTrader: (0)
Default Re: question about VPN killswitch using Linux iptables rules

I got it to work. But if anyone could tell me if I'm missing anything or if there is a better way to do it I'd appreciate the info. I didnt need to add any ipv6 rules. A test on test-ipv6 shows no ipv6 detected.

Delete all rules in a chain or all chains

iptables –F

Allow all input and output on local host

iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT


Allow traffic input and output from VPN Server

iptables -A INPUT -s 123.123.123.123 -j ACCEPT
iptables -A OUTPUT -d 123.123.123.123 -j ACCEPT


Allow traffic via VPN network adapter (L2TP/IPsec)

iptables -A INPUT -i ppp0 -j ACCEPT
iptables -A OUTPUT -o ppp0 -j ACCEPT


Drop everything else

iptables -A INPUT -j DROP
iptables -A OUTPUT -j DROP
iptables -P INPUT DROP
iptables -P OUTPUT DROP




When I run cmd: iptables -S it shows

-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -s 123.123.123.123/32 -j ACCEPT
-A INPUT -i ppp0 -j ACCEPT
-A INPUT -j DROP
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -d 123.123.123.123/32 -j ACCEPT
-A OUTPUT -o ppp0 -j ACCEPT
-A OUTPUT -j DROP
Reply With Quote
Reply



Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN Killswitch Pele3000 eBay Tracking 12 06-16-2016 06:31 PM
Using Linux pikachu10 eBay Discussion! 28 12-18-2014 04:32 PM
New EU Rules- Disbursement Rules? FrankR Amazon X 4 06-30-2014 07:10 PM
Question regarding new 'seller protection rules' curtainsplitter UK eBay & Paypal 3 04-29-2013 11:34 AM
Newbie that broke all the rules - Paypal Question fizam34 Multiple eBay & PayPal Accounts 1 01-26-2010 07:11 PM


Aspkin Group

All times are GMT -5. The time now is 12:40 AM.


Stop the guessing games and learn how you can quickly and easily get back on eBay today!
Read the best selling step-by-step eBay Suspension guide eBay Stealth!
Amazon Suspension? Read Amazon Ghost to get back on Amazon!
vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Ad Management by RedTyger
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58