linux – Can vsftpd handle DOSWindows style backslash in path names?

Is there an option to allow backslash in path on vsftpd?

Example problem from script in use.

CD FTPUSERFROM_FOLDER  
CD: Failed changing remote folder FTPUSERFROM_FOLDER! (Remote sever replay: 550 Failed to change directory.)

Similar to pure-ftpd

/etc/pure-ftpd/pure-ftpd.conf parameter:

allow_backslash_in_path

!Note there is not an option to change the scripts as they are on client side:

linux – eBPF – Cannot read argv and envp from tracepoint sys_enter_execve

I am learning BPF for my own fun, and I am having a hard time figuring out how to read argv and envp from the context passed to my eBPF program for sys_enter_execve

I will show my BPF program here and then explain in more details later what I am trying to accomplish.

Here’s my code:

#include <linux/bpf.h>
#include <bpf_helpers.h>

struct
{
    __uint(type, BPF_MAP_TYPE_ARRAY);
    __type(key, __u32);
    __type(value, char(300));
    __uint(max_entries, 1);
} mymap SEC(".maps");

// Based on /sys/kernel/debug/tracing/events/syscalls/sys_enter_execve/format
struct execve_args {
    short common_type;
    char common_flags;
    char common_preempt_count;
    int common_pid;
    int __syscall_nr;
    char *filename;
    const char *const *argv;
    const char *const *envp;
};

SEC("tracepoint/syscalls/sys_enter_execve")
int bpf_prog(struct execve_args *ctx) {
  
  __u32 index = 0;
  __u64 *value = bpf_map_lookup_elem(&mymap, &index);

  // An array of length 300 is purely arbitrary here
  char fn(300);

    // null check for the value fetched from the map
    if (value){
     
      // trying here to get the first env var passed to the process
      // started with execve
      const char *const first_env_value = ctx->envp(0);

      // null check
      if (!first_env_value){
        return 0;
      }
      
      // trying to safely read the value pointed by first_env_value
      bpf_probe_read_user_str(fn, sizeof(fn), first_env_value);
      bpf_map_update_elem(&mymap, &index, fn, BPF_ANY);
      return 0;
    
    }

    return 0;
}

char _license() SEC("license") = "GPL";

What I want, here, is to ultimately read the first environments variable referenced by ctx->envp and save it in the map.

Building the program succeeds, but it fails when I try to load it into the kernel:

8: (15) if r0 == 0x0 goto pc+15
 R0_w=map_value(id=0,off=0,ks=4,vs=300,imm=0) R6_w=ctx(id=0,off=0,imm=0) R10=fp0 fp-8=mmmm????
; const char *const first_env_value = ctx->envp(0);
9: (79) r1 = *(u64 *)(r6 +32)
; const char *const first_env_value = ctx->envp(0);
10: (79) r3 = *(u64 *)(r1 +0)
R1 invalid mem access 'inv'
processed 10 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0

I use bpf2go from Cilium project to load the BPF program into the kernel. And I use a Go program to read there BPF map.

Can someone give me some hints as to what am I doing wrong?

Maybe it is the double pointer that confuses me (const char *const *envp), maybe I misunderstand the sys_enter_execve system call and the tracepoint inputs, etc.

Any hint would be appreciated!

I’m not a kernel developer. I mostly code in Go and Python, but I really want to learn how to write BPF programs in pure C, just for the fun of it.

Thanks in advance

linux – dpkg: error processing package openjdk-8-jdk:amd64 (–configure)

linux – dpkg: error processing package openjdk-8-jdk:amd64 (–configure) – Server Fault

Managed SSD VPS – 25% Off For Life – Realtime Monitoring – Linux & Windows | NewProxyLists

About SolaDrive

SolaDrive has been around since 2009 providing quality Managed VPS, Dedicated Servers and advanced solutions. We strive for 15-minute response times or better, and with truly redundant networks and 100% uptime SLA we able to offer a very reliable service. All of our VPS come fully managed as well, no more worrying about how to setup and manage your server. Leave that to us!

★ 25% Off All VPS For Life ★

(Coupon: 25WHT)​

─────────────────────────────────────────────────────────
★ Included With All VPS Plans ★
─────────────────────────────────────────────────────────
» VPS Locations: Los Angeles, CA – New York City – Coventry, UK

» 32 Core Intel Xeon 4210 Servers, NVMe SSD Raid-10

» Free VPS Migration

» Free Backups made 2x Weekly to offsite server

» Free Script installation and configuration

» Free DirectAdmin license

» 24/7 Fully Managed by Experienced US Technicians

» Instant VPS Activation After Payment

» 15-Minute Response Times

» 99.9% Server Uptime Guarantee

» Free VPS Migration

» Feature packed SolusVM Control Panel

» 30 Day Money Back Guarantee!

─────────────────────────────────────────────────────────
★ Linux / Window VPS Hosting Plan ★
─────────────────────────────────────────────────────────
XEN1 VPS

  • 2 CPU Cores @ 3.0GHz
  • 50GB NVMe SSD
  • 2GB DDR4 RAM
  • 2TB Bandwidth
  • 1000 Mbps Uplink
  • Fully Managed
  • 1 Dedicated IP’s

Monthly Price: $26.25/mo – 25% Off Coupon: 25WHT

Order Linux VPS

Order Windows VPS

XEN2 VPS

  • 4 CPU Cores @ 3.0GHz
  • 100GB NVMe SSD
  • 4GB DDR4 RAM
  • 4TB Bandwidth
  • 1000 Mbps Uplink
  • Fully Managed
  • 1 Dedicated IP’s

Monthly Price: $41.25/mo – 25% Off Coupon: 25WHT

Order Linux VPS

Order Windows VPS

XEN3 VPS

  • 6 CPU Cores @ 3.0GHz
  • 150GB NVMe SSD
  • 6GB DDR4 RAM
  • 6TB Bandwidth
  • 1000 Mbps Uplink
  • Fully Managed
  • 2 Dedicated IP’s

Monthly Price: $56.25/mo – 25% Off Coupon: 25WHT

Order Linux VPS

Order Windows VPS

XEN4 VPS

  • 8 CPU Cores @ 3.0GHz
  • 200GB NVMe SSD
  • 8GB DDR4 RAM
  • 8TB Bandwidth
  • 1000 Mbps Uplink
  • Fully Managed
  • 2 Dedicated IP’s

Monthly Price: $71.25/mo – 25% Off Coupon: 25WHT

Order Linux VPS

Order Windows VPS

Pay for a VPS annually and you’ll receive 1 month free!

─────────────────────────────────────────────────────────
★ Location and Test IPs ★
─────────────────────────────────────────────────────────
Los Angeles, CA Test IP: 69.12.66.26 – DC Info Page
New York City Test IP: 216.156.135.64 – DC Info Page
Coventry, UK Test IP: 78.157.209.195 – DC Info Page

─────────────────────────────────────────────────────────
★ VPS Nodes Server Specs ★
─────────────────────────────────────────────────────────
– Newest Dual Intel Xeon 4210 Processors (20/40 x 3.2GHz Max Cores/Threads)
– 256GB DDR4 ECC Ram
– Supermicro Chassis, Motherboard, and Power Supplies
– Dual redundant power supplies
– True A + B power meaning an entire power grid for “A” could go out and server would still be operational on grid “B”
– 8 x 2TB WD NVMe SSD’s (Speeds up to 6800 MB/s)
– Raid-10 NVMe Storage
– 1Gbps Port Speeds

─────────────────────────────────────────────────────────
★ Contact & Payment Information ★
─────────────────────────────────────────────────────────
Payment Methods: Paypal, Credit/Debit Cards
Support: support@soladrive.com
Sales: sales@soladrive.com
Support Desk: https://www.soladrive.com/support

─────────────────────────────────────────────────────────
★ SolaDrive Reviews ★
─────────────────────────────────────────────────────────
» http://www.webhostingtalk.com/showthread.php?t=1721214
» http://www.webhostingtalk.com/showthread.php?t=1693670
» http://www.webhostingtalk.com/showthread.php?t=1658402
» http://www.webhostingtalk.com/showthread.php?t=1482870&p=9450513#post9450513
» http://www.webhostingtalk.com/showthread.php?t=1427999
» http://www.webhostingtalk.com/showthread.php?t=1358474
» http://www.webhostingtalk.com/showthread.php?p=8844371
» http://www.webhostingtalk.com/showthread.php?p=8767309
» http://www.webhostingtalk.com/showthread.php?t=1220491
» http://www.webhostingtalk.com/showpost.php?p=8460173&postcount=21
» http://www.webhostingtalk.com/showpost.php?p=8461401&postcount=4
» http://www.webhostingtalk.com/showthread.php?t=1128181&highlight=soladrive
» http://www.webhostingtalk.com/showthread.php?t=1185960&highlight=soladrive
» http://www.webhostingtalk.com/showthread.php?t=1182442&highlight=soladrive

linux – windows server samba share ping-able but not accessable

me and my friend have made a closed network on vmware containing:

  1. pfsense router with host-only card for LAN and a NAT card for WAN.
  2. an Ubuntu 20.04 LTS with samba installed and an existing share which is reachable via a normal install (before pfSense). a user + credentials have been added and enabled.
  3. a bald windows server 2019 with “ONLY” ADDS installed. (domain and everything is working)

they can all ping eachother (linux>windows, windows>linux, both systems to pfsense router)

but the only thing i cannot do is add the samba server as a share to windows by typing in the address bar from windows explorer “192.168.1.100”. which in theory should present the windows credentials screen where i need to log in to. though it gives this error: error windows server gives us

but when i ping the samba server i get this:

C:UsersAdministrator>ping 192.168.1.100

Pinging 192.168.1.100 with 32 bytes of data:
Reply from 192.168.1.100: bytes=32 time=1ms TTL=64
Reply from 192.168.1.100: bytes=32 time<1ms TTL=64
Reply from 192.168.1.100: bytes=32 time<1ms TTL=64
Reply from 192.168.1.100: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.1.100:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 1ms, Average = 0ms

so we don’t get why i cannot add it as a share nor access it via the search bar (also not visible in network, though in linux we can access it).

linux can also ping to windows so we are kinda lost, is there some option in pfSense we missed?

”all is done on one pc so we do not have to do any port forwarding to let machines outside this network access the machines, we only want the closed network to see the samba server so we can let the windows server do a backup to the smb server”

any help is welcome

After a random period of time, Windows is unable to see services running on my Linux subsystem and vice versa

I am running an Ubuntu 18.04 Linux Subsystem.

I have Postgresql 12 running on Linux, and I connect to this from my apps I am developing in Windows.

When I start up my PC, everything works fine.. DB can connect.

After an unspecified amount of time, half an hour, to a few days, Windows is no longer able to see Postgreql. Connection to 127.0.0.1:5432 refused.

Restarting the Subsystem doesn’t help. Restarting postgres doesn’t help..

But the problem extends to other services and ports.. for example, if I have Apache running on Linux, when this issue arises, it is no longer able to do a proxy pass to my Windows services.

Not sure what else to try – I have the same setup on a different PC, and I don’t have these problems.

It’s almost as if a firewall comes up between the two systems, but it’s more of a bug it seems.

Any suggestions welcomed!

linux – Is there a way to direct traffic coming in on the same port to two different VMs?

So the basic idea is stated in the question above, but let me explain.

I was thinking of hosting a Minecraft server inside a VM (using bridge mode so I can direct traffic to it via port forwarding) on my dedicated server here at home. Now I recently got asked by a friend if I could also host a server for his moderately small discord server. Naturally I agreed. My plan would be to simply open up a second VM for his server to run in and give him SSH access to it.

Now however, am am faced with the issue of Minecraft using a certain port to connect by default. I don’t really want to require people to add in a port number at the end of the URL. So how can I seperaten the traffic meant for one VM from the traffic meant for the other VM if the incoming traffic for both is on the same port? Is that even possible? Can I forward the same port to two different internal ip addresses?

I was thinking maybe using mc1.mydomain.com and mc2.mydomain.com to have traffic automatically routed to different incoming ports, aka. bind ports to the domain name.

I have no idea if I am just fantasizing about something impossible. Some help would be appreciated.

Thanks in advance.

PS: I have no option to use a fixed IP address so I am limited to dynamic DNS services.

Managed Dedicated Server – 25% Off For Life – Realtime Monitoring – Linux & Windows | NewProxyLists

About SolaDrive

SolaDrive has been around since 2009 providing quality Managed VPS, Dedicated Servers and advanced solutions. We strive for 15-minute response times or better, and with truly redundant networks and 100% uptime SLA we able to offer a very reliable service. All of our Dedicated Servers come fully managed as well, no more worrying about how to setup and manage your server. Leave that to us!

─────────────────────────────────────────────────────────

Included Features

─────────────────────────────────────────────────────────

★ Full Server Management w/ True 10-15 Minute Response Times​

★ We Pro-Actively Monitor Your Server In Real-Time​

★ Wide Variety of Operating Systems (Linux & Windows)​

★ IPMI Control: Allows you to remote reboot, reinstall, KVM console your machine and more​

★ Enterprise-Level 100% Uptime SLA on Power and Network Availability​

★ 2 Dedicated IPs Included​

★ Supermicro Motherboards and Enterprise Hardware​

★ 1 Hour Hardware Replacement SLA​

★ Free Migration Assistance​

★ Adult Content – Allowed​

★ cPanel is NOT required​

★ Generally online within 2-4 hours during business hours (8AM-8PM EST Mon-Friday)​

─────────────────────────────────────────────────────────

Locations and Test IPs

─────────────────────────────────────────────────────────
Buffalo, NY (east coast): 23.94.156.29

Los Angeles, CA (west coast): 198.55.111.5

─────────────────────────────────────────────────────────

Dedicated Servers

─────────────────────────────────────────────────────────
Intel i3-7330

  • 2 Cores / 4 Threads @ 4.0GHz
  • 2 x 1TB Hard Drive or 2 x 250GB SSD
  • 16GB DDR4 RAM
  • 10TB Bandwidth
  • 100Mbps Uplink
  • Fully Managed

Monthly Price: $68.00/mo

Order Now– 20% Off Coupon Code: WHT20

Intel E3-1230v6

  • 4 Cores / 8 Threads @ 3.9GHz Max
  • 2 x 1TB Hard Drive or 2 x 250GB SSD
  • 16GB DDR4 RAM
  • 10TB Bandwidth
  • 100Mbps Uplink
  • Fully Managed

Monthly Price: $92.00/mo

Order Now– 20% Off Coupon Code: WHT20

Intel E3-1270v6

  • 4 Cores / 8 Threads @ 4.2GHz
  • 2 x 1TB Hard Drive or 2 x 250GB SSD
  • 16GB DDR4 RAM
  • 10TB Bandwidth
  • 100Mbps Uplink
  • Fully Managed

Monthly Price: $108.00/mo

Order Now– Coupon Code: WHT20

Intel Xeon E5-1650v4

  • 6 Cores / 12 Threads @ 4.0GHz
  • 2 x 1TB Hard Drive or 2 x 250GB SSD
  • 16GB DDR4 RAM
  • 10TB Bandwidth
  • 100Mbps Uplink
  • Fully Managed

Monthly Price: $148.00/mo

Order Now– 20% Off Coupon Code: WHT20

Intel Xeon 2 x 4210 (Gen2)

  • 20 Cores / 40 Threads @ 3.2Ghz
  • 2 x 1TB Hard Drive or 2 x 250GB SSD
  • 32GB DDR4 RAM
  • 10TB Bandwidth
  • 100Mbps Uplink
  • Fully Managed

Monthly Price: $196.00/mo

Order Now– 20% Off Coupon Code: WHT20

Intel Xeon 2 x 6230 (Gen2)

  • 40 Cores / 80 Threads @ 3.9Ghz
  • 2 x 1TB Hard Drive or 2 x 250GB SSD
  • 32GB DDR4 RAM
  • 10TB Bandwidth
  • 100Mbps Uplink
  • Fully Managed

Monthly Price: $380.00/mo

Order Now– 20% Off Coupon Code: WHT20

─────────────────────────────────────────────────────────

Server Addon Pricing

─────────────────────────────────────────────────────────
Addon Pricing

» Add 1TB Drive: $10

» Add 2TB Drive: $15

» Add 4TB Drive: $20

» Add 10TB Drive: $30

» Add 256GB SSD: $10

» Add 512GB SSD: $15

» Add 1TB SSD: $20

» Add 2TB SSD: $30

» Add 512GB NVMe: $20

» Add 1TB NVMe: $35

» Add 2TB NVMe: $50

» Add 16GB Ram: $20

» Add 32GB Ram: $25

» 100Mbps >> 1Gbps: $15

» Add 25TB Bandwidth: $50

» Add cPanel / Plesk / DirectAdmin: $45 / $30 / $20

» Add Windows 2012/2016/2019 Standard: $25

» Add Microsoft SQL (MSSQL) Standard 2016 / 2017 / 2019: $225

» Add LSI-9361-4i w/CacheVault Raid Card: $35

─────────────────────────────────────────────────────────

SolaDrive.com Information

─────────────────────────────────────────────────────────
Payment Methods: Paypal, Credit/Debit Cards

Support: support@soladrive.com

Sales: sales@soladrive.com

Support Desk: https://www.soladrive.com/support

─────────────────────────────────────────────────────────

SolaDrive Reviews On WHT

─────────────────────────────────────────────────────────
» (url)http://www.webhostingtalk.com/showthread.php?t=1721214 (/URL)

» (url)http://www.webhostingtalk.com/showthread.php?t=1693670 (/URL)

» (url)http://www.webhostingtalk.com/showthread.php?t=1658402 (/URL)

» (url)http://www.webhostingtalk.com/showthread.php?t=1482870&p=9450513#post9450513 (/URL)

» http://www.webhostingtalk.com/showthread.php?t=1427999

» http://www.webhostingtalk.com/showthread.php?t=1358474

» http://www.webhostingtalk.com/showthread.php?p=8844371

» http://www.webhostingtalk.com/showthread.php?p=8767309

» http://www.webhostingtalk.com/showthread.php?t=1220491

» http://www.webhostingtalk.com/showpost.php?p=8460173&postcount=21

» http://www.webhostingtalk.com/showpost.php?p=8461401&postcount=4

» http://www.webhostingtalk.com/showthread.php?t=1128181&highlight=soladrive

» http://www.webhostingtalk.com/showthread.php?t=1185960&highlight=soladrive

» (URL=’http://www.webhostingtalk.com…thread.php?t=1182442&highlight=soladrive(/URL)

filesystems – Why has Windows used NTFS for 20+ years, while many different systems have trendend in the linux community over the same time?

I’m a first year MS:CS student, and my data structures class has inspired me to research file systems and their implementations. I recall using ext2, then ReiserFS, then ext3, then ext4, and now btrfs seems like the new thing. I understand (more or less) what changed from each of these, and their relative improvements, but what I don’t understand is how NTFS has stayed relevant during roughly the same period of time (looks like the last major version of NTFS shipped with Windows XP).

Was NTFS simply that well spec’d and designed from the beginning, or has Windows been working around some NTFS deficiencies in the interest of not having to rewrite some core parts of Windows from scratch? If that is the case, why are linux distros much more flexible in changing FS (user can even select a different FS at install time).

linux – 2 /boot, 1 grub and EFI

I have two partitions that serve as /boot for their respective Linux distributions. Grub “runs” out of one /boot partition and I need a menuentry that enables boot from the the other /boot

Currently I have,

menuentry "Ubuntu (5.8.0-49-generic)" {
        search --no-floppy --fs-uuid --set=root afe5152a-56f5-4e13-b215-06533f3ba6d5
        linux /vmlinuz-5.8.0-49-generic root=UUID=a62e0718-10c6-4224-8097-3a3f6c780070 ro rd.luks.uuid=luks-03d97a82-4ec5-4824-8fc3-a3b5eb38d4f9 rhgb quiet
        initrd /initrd.img-5.8.0-49-generic
}

The partitions are,

  • afe5152a-56f5-4e13-b215-06533f3ba6d5 – The second /boot
  • 03d97a82-4ec5-4824-8fc3-a3b5eb38d4f9 – The second /

It complains that I must first load the kernel.

How to I get it to boot the appropriate /boot/ and kernel?

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123