diff --git a/setup.py b/setup.py index 58a889d..7747455 100755 --- a/setup.py +++ b/setup.py @@ -38,14 +38,14 @@ def version_scheme(version): author_email='brian@linuxpenguins.xyz', description='Full-featured" VPN over an SSH tunnel', packages=find_packages(), - license="GPL2+", + license="LGPL2+", long_description=open('README.rst').read(), classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: " - "GNU General Public License v2 or later (GPLv2+)", + "GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", diff --git a/sshuttle/__main__.py b/sshuttle/__main__.py index b4bd42f..204d149 100644 --- a/sshuttle/__main__.py +++ b/sshuttle/__main__.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + """Coverage.py's main entry point.""" import sys from sshuttle.cmdline import main diff --git a/sshuttle/assembler.py b/sshuttle/assembler.py index 330528d..fa21e62 100644 --- a/sshuttle/assembler.py +++ b/sshuttle/assembler.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import sys import zlib import imp diff --git a/sshuttle/client.py b/sshuttle/client.py index d85ce08..3545c5d 100644 --- a/sshuttle/client.py +++ b/sshuttle/client.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import socket import errno import re diff --git a/sshuttle/cmdline.py b/sshuttle/cmdline.py index 48c0fbe..5401874 100644 --- a/sshuttle/cmdline.py +++ b/sshuttle/cmdline.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import sys import re import socket diff --git a/sshuttle/firewall.py b/sshuttle/firewall.py index f16aac6..e2be707 100644 --- a/sshuttle/firewall.py +++ b/sshuttle/firewall.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import errno import socket import signal diff --git a/sshuttle/helpers.py b/sshuttle/helpers.py index 4e80e33..4cb4412 100644 --- a/sshuttle/helpers.py +++ b/sshuttle/helpers.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import sys import socket import errno diff --git a/sshuttle/hostwatch.py b/sshuttle/hostwatch.py index 95a539a..1030309 100644 --- a/sshuttle/hostwatch.py +++ b/sshuttle/hostwatch.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import time import socket import re diff --git a/sshuttle/linux.py b/sshuttle/linux.py index f11172b..82da269 100644 --- a/sshuttle/linux.py +++ b/sshuttle/linux.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import socket import subprocess as ssubprocess from sshuttle.helpers import log, debug1, Fatal, family_to_string diff --git a/sshuttle/methods/__init__.py b/sshuttle/methods/__init__.py index 34699da..816cfb7 100644 --- a/sshuttle/methods/__init__.py +++ b/sshuttle/methods/__init__.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import os import importlib import socket diff --git a/sshuttle/methods/nat.py b/sshuttle/methods/nat.py index c5afc03..d319701 100644 --- a/sshuttle/methods/nat.py +++ b/sshuttle/methods/nat.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import socket from sshuttle.helpers import family_to_string from sshuttle.linux import ipt, ipt_ttl, ipt_chain_exists, nonfatal diff --git a/sshuttle/methods/pf.py b/sshuttle/methods/pf.py index fc238f8..0c4f15d 100644 --- a/sshuttle/methods/pf.py +++ b/sshuttle/methods/pf.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import os import sys import re diff --git a/sshuttle/methods/tproxy.py b/sshuttle/methods/tproxy.py index 5094962..b2db5a1 100644 --- a/sshuttle/methods/tproxy.py +++ b/sshuttle/methods/tproxy.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import struct from sshuttle.helpers import family_to_string from sshuttle.linux import ipt, ipt_ttl, ipt_chain_exists diff --git a/sshuttle/options.py b/sshuttle/options.py index 046ed5f..69f153e 100644 --- a/sshuttle/options.py +++ b/sshuttle/options.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + """Command-line options parser. With the help of an options spec string, easily parse command-line options. """ diff --git a/sshuttle/server.py b/sshuttle/server.py index 4ae2749..d915809 100644 --- a/sshuttle/server.py +++ b/sshuttle/server.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import re import struct import socket diff --git a/sshuttle/ssh.py b/sshuttle/ssh.py index 7691c80..03b3d01 100644 --- a/sshuttle/ssh.py +++ b/sshuttle/ssh.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import sys import os import re diff --git a/sshuttle/ssnet.py b/sshuttle/ssnet.py index 218e7b5..0b72947 100644 --- a/sshuttle/ssnet.py +++ b/sshuttle/ssnet.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import struct import socket import errno diff --git a/sshuttle/ssyslog.py b/sshuttle/ssyslog.py index 023a4c8..1df54e4 100644 --- a/sshuttle/ssyslog.py +++ b/sshuttle/ssyslog.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import sys import os import subprocess as ssubprocess diff --git a/sshuttle/stresstest.py b/sshuttle/stresstest.py index 490e60a..edf2320 100755 --- a/sshuttle/stresstest.py +++ b/sshuttle/stresstest.py @@ -1,4 +1,22 @@ #!/usr/bin/env python + +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import socket import select import struct diff --git a/sshuttle/tests/test_firewall.py b/sshuttle/tests/test_firewall.py index fb4ba40..3c4cc35 100644 --- a/sshuttle/tests/test_firewall.py +++ b/sshuttle/tests/test_firewall.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + from mock import Mock, patch, call import io diff --git a/sshuttle/tests/test_helpers.py b/sshuttle/tests/test_helpers.py index 67c6682..19b2b91 100644 --- a/sshuttle/tests/test_helpers.py +++ b/sshuttle/tests/test_helpers.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + from mock import patch, call import sys import io diff --git a/sshuttle/tests/test_methods_nat.py b/sshuttle/tests/test_methods_nat.py index 2144e25..ee843fa 100644 --- a/sshuttle/tests/test_methods_nat.py +++ b/sshuttle/tests/test_methods_nat.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import pytest from mock import Mock, patch, call import socket diff --git a/sshuttle/tests/test_methods_pf.py b/sshuttle/tests/test_methods_pf.py index cb7d5f1..8aa5d7e 100644 --- a/sshuttle/tests/test_methods_pf.py +++ b/sshuttle/tests/test_methods_pf.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + import pytest from mock import Mock, patch, call, ANY import socket diff --git a/sshuttle/tests/test_methods_tproxy.py b/sshuttle/tests/test_methods_tproxy.py index 3401958..419d3b5 100644 --- a/sshuttle/tests/test_methods_tproxy.py +++ b/sshuttle/tests/test_methods_tproxy.py @@ -1,3 +1,20 @@ +# This file is part of sshuttle, a transparent SSH proxy/VPN. +# Copyright (C) 2016 the sshuttle authors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the Free +# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + from mock import Mock, patch, call from sshuttle.methods import get_method