Quantcast
Channel: Ubuntu Forums - Networking & Wireless
Viewing all 23300 articles
Browse latest View live

[ubuntu] Netgear WNDA 3100v2 install on Ubuntu 17.10

$
0
0
Hi All, I have a Netgear WNDA 3100 V2 WiFi stick and downloaded drivers for it from another post, how do I install them please, I am new to Ubuntu as I fell out of favour with Windows 10 Creators update as it screwed my comp up :mad: so any help will be appreciated.

Thanks in advance.

[SOLVED] 16.04.3 tl-822n v4 network adapter slow speed

$
0
0
hi,

i'm using a tp link adapter TL-822n v4 with Ubuntu budgie 16.04.3.

I't seems that the adapter is supported on kernel 4.10 https://forums.opensuse.org/showthre...USB-wifi/page2
but i still had to install driver for the machine to recognize the adapter. i installed this driver by dkms https://github.com/Mange/rtl8192eu-linux-driver

I'm connected to the internet but i'm getting 10Mb's while every other wireless machine in the house is getting ~40Mb's

here is the result of the wireless script https://paste.ubuntu.com/25785439/

how can i address this issue?

Thanks,

[SOLVED] No wireless--wifi after upgraded from 17.04 to 17.10

$
0
0
After I have upgrade from 17.04 to 17.10 I am getting this error
No wifi adapter found .
make sure you have wifi adapter plugged and turned on.
Before the upgrade I was only using wireless.


iwconfig
docker0 no wireless extensions.

lxcbr0 no wireless extensions.

enp2s0 no wireless extensions.

virbr0 no wireless extensions.

virbr0-nic no wireless extensions.

lo no wireless extensions.


LSB Version: core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful

tks

Internet only works with VPN after 17.10 upgrade

$
0
0
After updating to 17.10 if I restart my computer the internet doesn't work (wireless / ethernet). However, I noticed beameup on this post (https://ubuntuforums.org/showthread.php?t=2374857) mentioned that when he flipped on his VPN (Private Internet Access - aka PIA) things started working. I have PIA so I flipped it on and I was able to connect to the net as well. In fact, if I'm connected to the VPN my wireless shows up as a normal working icon. If the VPN is off it shows up as a question mark and nothing works. Unlike beameup the "sudo dpkg-reconfigure resolveconf" didn't do the trick for me. How do I get this resolved?

Steps I've tried....


Config output (No VPN)
[eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 00:90:f5:ea:54:c7 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf7e00000-f7e20000


lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 7623 bytes 693829 (693.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7623 bytes 693829 (693.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.86.135 netmask 255.255.255.0 broadcast 192.168.86.255
inet6 fe80::ba76:3fff:fe78:e9f3 prefixlen 64 scopeid 0x20<link>
ether b8:76:3f:78:e9:f3 txqueuelen 1000 (Ethernet)
RX packets 896 bytes 261407 (261.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 665 bytes 142825 (142.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0]

iwonconfig
[wlan0 IEEE 802.11 ESSID:"ShadowsAlley" Mode:Managed Frequency:5.745 GHz Access Point: 70:3A:CB:63:8F:B3
Bit Rate=243 Mb/s Tx-Power=17 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=65/70 Signal level=-45 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:120 Missed beacon:0]

ping test to 8.8.8.8 (no VPN)
[PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=75.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=266 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=26.4 ms


--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 26.440/122.745/266.437/103.550 ms]

[SOLVED] No routes on wifi after upgrade to 17.10

$
0
0
Upgraded my Asus UX-31 to 17.10. After the upgrade, I get no connectivity over wifi. It connects to the router and gets an IP address, but I can't even ping the router. Connects fine over USB ethernet.

wireless-info.txt at
http://paste.ubuntu.com/25786872/

TIA!

Cannot access Huawei through browser

$
0
0
Hi. I have a Huawei HG8245 and I'm trying to access the router page but it's impossible. The default IP is supposed to be 192.168.100.1 but when I try to enter it it keeps loading or I get a ERR_CONNECTION_REFUSED.
Tried with Chrome and Firefox. I also tried over Wi-fi and Ethernet, and with "https://". I have no proxy and Ubuntu firewall seems to be deactivated. I tried also resetting the router and trying with the IPv6 address.
Also, my DNS seems to be the same as the router IP, has it anything to do with this?

Thanks.

[SOLVED] Trouble mounting cifs shares after upgrade to 17.10

$
0
0
I had a 17.04 ubuntu desktop with a couple samba shares mounted in fstab
It worked pretty well.
Then I upgraded to 17.10, and it broke.

I eventually figured out what the matter was before posting this question, but had already written most of this so I figured I'd post it anyway in case someone, including my future self, might find it useful.

Code:

#Alan's mount on U35WF
//192.168.1.101/2TBhdd /mnt/U35WF/alan                  cifs credentials=/home/alan/.smbcredentials,iocharset=utf8,sec=ntlm,uid=1000,gid=1000 0 0
#Bella's mount of U35WF
//192.168.1.101/2TBhdd /mnt/U35WF/bella                  cifs credentials=/home/bella/.smbcredentials,iocharset=utf8,sec=ntlm,uid=1001,gid=1001 0 0

At 192.168.1.101 is a Kimax U35WF running a custom OpenWRT firmware.
Its samba version is 3.6.25. Its smb.conf was:
Code:

[global]
        netbios name = LEDE
        display charset = UTF-8
        interfaces = 127.0.0.1/8 lo 192.168.1.101/24 br-lan
        server string = LEDE on U35WF
        unix charset = UTF-8
        workgroup = WORKGROUP
        local master = no
        browseable = yes
        deadtime = 30
        domain master = yes
        encrypt passwords = yes
        enable core files = no
        guest ok = yes
        invalid users = root
        load printers = no
        map to guest = Bad User
        max protocol = SMB2
        min receivefile size = 16384
        null passwords = yes
        passdb backend = smbpasswd
        preferred master = yes
        security = user
        smb passwd file = /etc/samba/smbpasswd
        syslog = 2
        use sendfile = yes
        writeable = yes
        bind interfaces only = yes

[homes]
        comment    = Home Directories
        browsable  = no
        read only  = no
        create mode = 0750

[2TBhdd]
        path = /mnt/2TBhdd
        valid users = alan bella
        read only = no
        guest ok = no
        create mask = 0660
        directory mask = 0750

[Alan]
        path = /mnt/2TBhdd/alan
        valid users = alan
        read only = no
        guest ok = no
        create mask = 0660
        directory mask = 0750

[Bella]
        path = /mnt/2TBhdd/bella
        valid users = bella
        read only = no
        guest ok = no
        create mask = 0660
        directory mask = 0750

I tried to mount manually, but got an error message
Code:

sudo mount //192.168.1.101/2TBhdd /mnt/U35WF/alan -t cifs -o credentials=/home/alan/.smbcredentials,uid=1000,gid=1000
mount error(22): Invalid argument

dmesg had this to say:
Code:

[ 8458.126450] No dialect specified on mount. Default has changed to a more secure dialect, SMB3 (vers=3.0), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 specify vers=1.0 on mount. For somewhat newer servers such as Windows 7 try vers=2.1.
[ 8458.131309] CIFS VFS: cifs_mount failed w/return code = -22

I tried increasing smb verbosity like this, and got one more line:
Code:

sudo su
echo 7 > /proc/fs/cifs/cifsFYI
dmesg | tail
[ 8509.743356] No dialect specified on mount. Default has changed to a more secure dialect, SMB3 (vers=3.0), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 specify vers=1.0 on mount. For somewhat newer servers such as Windows 7 try vers=2.1.
[ 8509.747964] Status code returned 0xc000000d STATUS_INVALID_PARAMETER
[ 8509.747991] CIFS VFS: cifs_mount failed w/return code = -22

(Note, echo 0 > /proc/fs/cifs/cifsFYI to set verbosity back to normal)
I looked up that status code at https://msdn.microsoft.com/en-us/library/ee441884.aspx but it only says "A parameter supplied with the message is invalid."

Nonetheless I had a hint that the SMB protocol version may be the issue, and decided to try to mount with different versions. Here are my attempts:
Code:

alan@Desktop: ~ $ sudo mount -t cifs //192.168.1.101/2TBhdd /mnt/U35WF/2TBhdd --verbose -o credentials=/home/alan/.smbcredentials,vers=3.0
mount.cifs kernel mount options: ip=192.168.1.101,unc=\\192.168.1.101\2TBhdd,vers=3.0,user=alan,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
FAIL: 32
alan@Desktop: ~ $ sudo mount -t cifs //192.168.1.101/2TBhdd /mnt/U35WF/2TBhdd --verbose -o credentials=/home/alan/.smbcredentials,vers=2.1
mount.cifs kernel mount options: ip=192.168.1.101,unc=\\192.168.1.101\2TBhdd,vers=2.1,user=alan,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
FAIL: 32

Both of these had the following output from dmesg:
Code:

Status code returned 0xc000000d STATUS_INVALID_PARAMETER
CIFS VFS: cifs_mount failed w/return code = -22

This, however, allowed me to mount the share.
sudo mount -t cifs //192.168.1.101/2TBhdd /mnt/U35WF/2TBhdd --verbose -o credentials=/home/alan/.smbcredentials,vers=2.0

Around this time I discovered that Samba =! SMB and Samba Version =! SMB Protocol Version. http://www.kossboss.com/?p=2661
I had expected my NAS' 3.6.25 samba to support SMB3, because well, they about the same thing from a noob's point of view, and both versions start with a 3. :S

Anyway, it turns out that before the upgrade, the connection was via SMB1 as it was a universally supported default. That's been depreciated, probably due to the WannaCry hack, which exploited it.
Ubuntu just needed me to add vers=2.0, and 2.1 & 3.0 were never gonna work because the server doesn't support those later versions.
I ended up adding these options to my server's smb.conf.template file:
Code:

#In [global] section
        min protocol = SMB2
        max protocol = SMB2

Wifi really slow.

$
0
0
Hi all, i just got ubuntu 17.10 (never used Ubuntu before) and the Internet is really slow compairing to Windows (about 20% and unstable) . Can somebody help me ? I guess its a driver problem:

my lsmod :
Module Size Used by
rtl8xxxu 126976 0
rt2800usb 28672 0
rt2x00usb 20480 1 rt2800usb
rt2800pci 16384 0
rt2800mmio 16384 1 rt2800pci
rt2x00pci 16384 1 rt2800pci
rt2x00mmio 16384 2 rt2800mmio,rt2800pci
eeprom_93cx6 16384 1 rt2800pci
ccm 20480 6
arc4 16384 2
nls_iso8859_1 16384 1
snd_hda_codec_realtek 94208 1
snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
snd_hda_codec_hdmi 49152 1
snd_hda_intel 40960 8
snd_hda_codec 126976 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_gen eric,snd_hda_codec_realtek
snd_hda_core 81920 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd _hda_codec_generic,snd_hda_codec_realtek
snd_hwdep 20480 1 snd_hda_codec
snd_pcm 98304 4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_c odec_hdmi
snd_seq_midi 16384 0
snd_seq_midi_event 16384 1 snd_seq_midi
snd_rawmidi 32768 1 snd_seq_midi
rt2800lib 114688 3 rt2800mmio,rt2800usb,rt2800pci
rt2x00lib 53248 7 rt2800lib,rt2x00pci,rt2800mmio,rt2800usb,rt2x00usb ,rt2x00mmio,rt2800pci
snd_seq 65536 2 snd_seq_midi_event,snd_seq_midi
edac_mce_amd 28672 0
mac80211 778240 5 rt2800lib,rt2x00pci,rt2x00lib,rt2x00usb,rtl8xxxu
snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 32768 2 snd_seq,snd_pcm
kvm 581632 0
cfg80211 610304 2 rt2x00lib,mac80211
input_leds 16384 0
joydev 20480 0
irqbypass 16384 1 kvm
snd 81920 27 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_ timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec _generic,snd_seq_device,snd_hda_codec_realtek,snd_ pcm
soundcore 16384 1 snd
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
ccp 73728 0
ghash_clmulni_intel 16384 0
pcbc 16384 0
aesni_intel 188416 4
eeepc_wmi 16384 0
aes_x86_64 20480 1 aesni_intel
asus_wmi 28672 1 eeepc_wmi
crypto_simd 16384 1 aesni_intel
glue_helper 16384 1 aesni_intel
sparse_keymap 16384 1 asus_wmi
shpchp 36864 0
i2c_piix4 24576 0
cryptd 24576 3 crypto_simd,ghash_clmulni_intel,aesni_intel
video 40960 1 asus_wmi
wmi_bmof 16384 0
8250_dw 16384 0
mac_hid 16384 0
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 49152 3 lp,parport_pc,ppdev
ip_tables 24576 0
x_tables 40960 1 ip_tables
autofs4 40960 2
hid_generic 16384 0
usbhid 49152 0
hid 118784 2 hid_generic,usbhid
amdkfd 188416 1
amd_iommu_v2 20480 1 amdkfd
amdgpu 2007040 31
i2c_algo_bit 16384 1 amdgpu
ttm 94208 1 amdgpu
drm_kms_helper 167936 1 amdgpu
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 356352 27 amdgpu,ttm,drm_kms_helper
r8169 81920 0
ahci 36864 2
mii 16384 1 r8169
libahci 32768 1 ahci
wmi 24576 2 asus_wmi,wmi_bmof
gpio_amdpt 16384 0
gpio_generic 16384 1 gpio_amdpt


my " sudo lshw -C network" :


*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:1e:00.0
logical name: enp30s0
version: 15
serial: 88:d7:f6:40:30:13
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:296 ioport:f000(size=256) memory:fe604000-fe604fff memory:fe600000-fe603fff
*-network
description: Wireless interface
physical id: 1
bus info: usb@1:9
logical name: wlx98ded0088d44
serial: 98:de:d0:08:8d:44
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8xxxu driverversion=4.13.0-16-generic firmware=N/A ip=192.168.1.7 link=yes multicast=yes wireless=IEEE 802.11



THANKS for any help !

[ubuntu] VPN not connecting; using OpenVPN

$
0
0
I configured the details for my VPN (with IPVanish) but when i try to connect it does nothing. Anyone can help me out? Let me know what details you want me to post and i can post

Cannot SSH using hostname

$
0
0
Hello.

I cannot SSH into machine using machine's hostname, but I can with IP address.

This is the output of nslookup hostname:

Code:

Server:        192.168.1.1
Address:    192.168.1.1#53

Name:    hostname
Address: 192.168.1.5
Name:    hostname
Address: 192.168.1.5

ping hostname:

Code:

ping: hostname: Name or service not known
And my resolv.conf:

Code:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#    DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 192.168.1.1
nameserver fe80::1
nameserver 127.0.0.53

Missing OpenVPN Option vpn addresses only

$
0
0
I did clean install of Ubuntu 17.10 and added the packages for OpenVPN. Previously in Ubuntu 17.04 and versions previously in the configuration settings for IPv4 and IPv6 there was an option for (vpn addresses only). This option seems to be missing so how do I get this working in Ubuntu 17.10?

[SOLVED] Problem at mounting cifs shared

$
0
0
Hi,

I've just installed U17.10 and I'm experiencing a weird error at mounting a cifs shared hosted on a NSA325 NAS.

I had mounted these shared without problems since several years on previous Ubuntu version.

The weirdest thing is that via Nautilus I can mount the shared folders with no problem.

Here is my fastab:
Code:

...
//192.168.1.160/BACKUP    /mnt/BACKUP    cifs iocharset=utf8,credentials=/.smbcredentials,uid=1000,nofail 0 0
...

When I mount (sudo mount -a) I got this error:
Code:

$ sudo mount -v -a
mount.cifs kernel mount options: ip=192.168.1.160,unc=\\192.168.1.160\BACKUP,iocharset=utf8,uid=1000,user=luke,pass=********
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Syslog:
Code:

CIFS VFS: cifs_mount failed w/return code = -112
the 445 port is open:

Code:

$ nmap -p 445 192.168.1.160 -P0
Starting Nmap 7.60 ( https://nmap.org ) at 2017-10-22 12:34 CEST
Nmap scan report for computer.station (192.168.1.160)
Host is up (0.00027s latency).

PORT    STATE SERVICE
445/tcp open  microsoft-ds

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds


?

LK

Qualcomm Atheros QCA6174 wireless driver Ubuntu 16.04 no upload speed

$
0
0
Hi,

I'm new to linux and installed Ubuntu yesterday. While my wifi download speed is fine (30M based on speedtest.net), I have ~0 upload speed according to that website (it actually hangs up), and anything which requires me to upload data (e.g. even sending emails) takes forever. I eventually figured out that the problem is probably with the firmwork.

I used https://ubuntuforums.org/showthread.php?t=2323812 for advice and followed the guidelines there to remove the mess I've originally made, then download, install and rename the firmwork files.

but still, after doing all that when I run:
dmesg | grep ath10k

I get:

[ 14.870142] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 15.203630] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[ 15.203640] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 15.229213] ath10k_pci 0000:02:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 11ad:08a6
[ 15.229214] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[ 15.229680] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.1.0-00267-1 api 5 features ignore-otp crc32 79cea2c7
[ 15.296818] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 93da0176
[ 17.097392] ath10k_pci 0000:02:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[ 17.108374] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0


and I still no upload speed after rebooting.

Any help would be very much appreciated!

Wifi not working in Ubuntu 17.10 version

[SOLVED] Can't start OpenVPN service since upgrade to 17.10

$
0
0
I had OpenVPN configured to start as a systemd service on 17.04 but since upgrading to 17.10 it no longer works. systemctl gives the error:

Code:

user@ubuntu:/etc/openvpn $ sudo systemctl start openvpn@vpn.service
Failed to enable unit: Unit file openvpn@vpn.service does not exist.

My OpenVPN config file still exists in /etc/openvpn with the same name it had before:

Code:

user@ubuntu:/etc/openvpn $ ls
ca.crt  vpn.conf  client.crt  client.key  update-resolv-conf

Listing my service unit files only shows one entry and it's state is "masked" which I don't know the meaning of:

Code:

user@ubuntu:/etc/openvpn $ systemctl list-unit-files --type=service | ag 'openvpn'
openvpn.service                            masked

EDIT:
I searched for "masked" and found how to unmask, so now it shows:

Code:

user@ubuntu:~ $ systemctl list-unit-files --type=service | ag 'openvpn'
openvpn.service                            generated

That's no more helpful though.

Let me know if there's anything else I can post that would help.

EDIT 2:

Turns the openvpn package was removed by the upgrade and just needed to be reinstalled. It didn't even occur to me that it could be gone.

Ping Lan through hostpot nated behind VPN

$
0
0
Hello,

i'm facing a problem while trying to access to my lan (192.168.1.0/24) through my hotspot which provide a DHCP connexion nated behind a VPN.
Currently my hotspot is working well, DHCP connexion is functionnal, i succeed to surf on the web trough it, but i would like to allow the ping to my LAN.

to be clearer, i would like to be able to ping 192.168.1.0/24 from 192.168.220.0/24

Please to find below my Iptables script :

Code:

#!/bin/bash

#On flush les anciennes règles
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

#On autorise les requêtes local
sudo iptables -A INPUT -i lo -j ACCEPT

#On autorise les requêtes DNS
sudo iptables -t filter -A OUTPUT -p tcp --dport 53 -j ACCEPT
sudo iptables -t filter -A OUTPUT -p udp --dport 53 -j ACCEPT
sudo iptables -t filter -A INPUT -p tcp --dport 53 -j ACCEPT
sudo iptables -t filter -A INPUT -p udp --dport 53 -j ACCEPT

#On autorise le ping pour eth0 et  wlan0
sudo iptables -A INPUT -i eth0 -p icmp -j ACCEPT
sudo iptables -A INPUT -i wlan0 -p icmp -j ACCEPT

#On autorise le ssh pour eth0 et  wlan0
sudo iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
sudo iptables -A INPUT -i wlan0 -p tcp --dport 22 -j ACCEPT

#On envoie tous le traffic vers le tunnel VPN
sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT
sudo iptables -A FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT

#On envoie tous le traffic de wlan0 vers le tunnel
sudo iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o tun0 -j ACCEPT
sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

#On jette tous le reste
sudo iptables -P FORWARD DROP
sudo iptables -P INPUT DROP

#On sauvegarde les règles persistentes
sudo systemctl enable netfilter-persistent

for information :
eth0 : 192.168.1.48 (GW 192.168.1.254)
wlan0 : 192.168.220.1 (DHCP Range 192.168.220.10 - 50/24)
tun0 : VPN Interface

Thank.

No wifi after upgraded from 17.04 to 17.10

$
0
0
Hi!
Guys, I am here with the same problem - no wi-fi after upgrade to 17.10.
I downloaded script for collecting info, transferred it to Ubuntu decktop folder via usb-flash drive, but as it runs it produces only one row only - "...wi-fi info START...", the rest of the file is empty...
Tip in post 4 above did not help (
Could you help me please?

Wireless interface doesn't exist.

$
0
0
Hello, everyone. I have notebook with dualboot ubuntu 17.10 and windows 10.

Wifi is working normally on windows but not on linux.

Here is the scripted file with all the needed information.

Code:

http://paste.ubuntu.com/25795955/
Greatly appreciate any assistance.

I can't connect to the internet

$
0
0
Hi
I'm using Ubuntu Mate and a tp-link tl-wn722n wireless adapter.

There is no connection at all.

I can't use the sudo apt command to get additional packages because I'm offline. I am only able to post this message via dual boot Windows 10, otherwise I would have no access to the internet.

Is there any way to fix this? I'm desperate to dump Windows 10 for good.

Slow Computer to Computer (WiFi to Ethernet) LAN Speed

$
0
0
Hi everyone. I'm having some issues with my network and could use some help.

I'm getting extremely slow SMB and NFS transfer speeds across my LAN (~2.8 MB/sec 22mb/sec).

Both server and client are running Ubuntu 16.04. The server is connected via Ethernet and the laptop wifi (built in wireless N). The network has as ASUS RT-AC66 AC1750 router and a gigabit switch. All cable is Cat 5e. When running a speed test with our internet both easily achieve the 85mb/sec delivered by our provider (well above the 22mb achieved when connected intranet).

I've run iperf -c and get 875mb/s when both are connected via Ethernet and only 22-25 mb/s when the laptop is connected via WiFi.

This seems to me a LAN issue since I can connect to the internet so much faster. My only issue is I have on idea where to look/start.

Any help would be appreciated. Thanks!
Viewing all 23300 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>