How can I open some ports to do torrenting ? PLEase

How can I open some ports to do tor-renting ? Please

#!/bin/bash

if [ -t 1 ] ; then
  c_134=$'\033[1;34m'
  c_131=$'\033[1;31m'
  c_off=$'\033[0m'
else
  c0="c0"
fi

detect_dual_boot() {
  if [[ $EUID -eq 0 ]] && [[ -x /usr/bin/os-prober ]]; then
    local OSPROBER_OUT="$(os-prober)" || { DUALBOOT="Os-prober error"; exit; }
    echo $OSPROBER_OUT | grep -q "Windows Boot Manager" &> /dev/null && DUALBOOT="Yes" || DUALBOOT="No/Undetected"
  elif [[ -x /usr/bin/efibootmgr ]] && [ -d /boot/efi ]; then
    local EFIBOOTMGR_OUT="$(efibootmgr)" || { DUALBOOT="Efibootmgr error"; exit; }
    echo $EFIBOOTMGR_OUT | grep -q "Windows Boot Manager" &> /dev/null && DUALBOOT="Probably (Run as root to verify)" || DUALBOOT="No/Undetected"
  elif [[ -x /usr/bin/os-prober ]]; then
    DUALBOOT="<superuser required>"
  else
    DUALBOOT="No detection tool installed"
  fi
}

detect_snapshots() {
  if [ -d /.snapshots ] || pacman -Qq snapper-support &> /dev/null; then
     printf "snapper "
  elif [ -d /run/timeshift ] || pacman -Qq timeshift-support &> /dev/null; then
     printf "timeshift "
  elif pacman -Qq snapper &> /dev/null; then
     printf "snapper(custom) "
  elif pacman -Qq timeshift &> /dev/null; then
     printf "timeshift(custom) "
  fi
}

generate_relevant_software() {
  local RELEVANT=()
  local packages
  packages="$(pacman -Qq garuda-dracut-support mkinitcpio dracut nvidia-dkms 2> /dev/null | xargs || true)"

  systemctl is-enabled tlp &> /dev/null && RELEVANT+=("tlp")
  systemctl is-active NetworkManager &> /dev/null && RELEVANT+=("NetworkManager")
  systemctl is-active connman &> /dev/null && RELEVANT+=("connman")

  if [[ "$packages" =~ (^| )garuda-dracut-support($| ) ]]; then
    RELEVANT+=("dracut")
  elif [[ "$packages" =~ (^| )dracut($| ) ]]; then
    RELEVANT+=("dracut(custom)")
  fi
  [[ "$packages" =~ (^| )mkinitcpio($| ) ]] && RELEVANT+=("mkinitcpio")
  [[ "$packages" =~ (^| )nvidia-dkms($| ) ]] && RELEVANT+=("nvidia-dkms")

  detect_snapshots

  local RELEVANT_SOFTWARE="${RELEVANT[*]}"
  [ -z "$RELEVANT_SOFTWARE" ] && RELEVANT_SOFTWARE="None"
  echo "$RELEVANT_SOFTWARE"
}

generate_system_update() {
  local last_update
  last_update="$(date -r /var/lib/garuda/last_update +%s 2> /dev/null)" || { echo "Unknown/Never"; return; }
  local reboot=""
  if [ "$last_update" -gt "$(date -r /proc +%s)" ]; then
    reboot=" ${c_131}↻${c_off}"
  fi
  echo -e "$(date -d"@$last_update" +%F)${reboot}"
}

inxi -Faz${c0} --zv

echo -e "${c_134}Garuda ($(pacman -Q garuda-common-settings | awk '{print $2}')):${c_off}"
install_date="$(head -n1 /var/log/pacman.log | cut -d " " -f1 | cut -c 2-11)"
echo -e "${c_134}  System install date:${c_off}     ${install_date}"
echo -e "${c_134}  Last full system update:${c_off} $(generate_system_update)"
echo -e "${c_134}  Is partially upgraded:  ${c_off} $([ -e /var/lib/garuda/partial_upgrade ] && echo Yes || echo No)"
echo -e "${c_134}  Relevant software:      ${c_off} $(generate_relevant_software)"
detect_dual_boot &> /dev/null
echo -e "${c_134}  Windows dual boot:      ${c_off} ${DUALBOOT}"
echo -e "${c_134}  Failed units:           ${c_off} $(systemctl list-units --failed --full --all --plain --no-legend | awk '{printf("%s ",$1)}')"
if [ "$1" == "funstuff" ]; then
  update_count="$(paclog --grep="starting full system upgrade" | wc -l)"
echo -e "${c_134}  Total system updates:   ${c_off} ${update_count}"
echo -e "${c_134}  --> Updates per week:   ${c_off} $(( ${update_count}/(($(date +%s) - $(date --date="$install_date" +%s) )/(60*60*24*7)) ))"
fi

Follow the template please.

Hello Garuda users.

Please read the following template before requesting assistance:

Please post the terminal/konsole input and output as text (no pictures) from the following command:

garuda-inxi

Refusing to post the output of the required "garuda-inxi" on a help request will likely result in you not receiving any help from the Garuda team. A failure to provide your system specs may also result in your thread being closed without notice, (as without this information providing assistance is often next to impossible).

Before opening a new help request, please search the Arch and Garuda Wiki's, and read any relevant sections related to your issue. Also, thoroughly search any error messages in the forum's search engine and on the web. For in depth information on how to search for answers to Linux issues effectively read the tips on the Garuda Wiki:

Please report in detail everything you have already attempted to solve your problem.


BTW, where? :slight_smile:

1 Like

HI

That is my ```
garuda-inxi

i posted

and i went here for opening ports
https://www.digitalocean.com/community/tutorials/opening-a-port-on-linux

but got to the firewall and stopped

FM/ :slight_smile:

You post a bash script not the output from

garuda-inxi

Did you check if some firewall is active?
Did you try torrenting?
Did you start torrent from terminal?
Did you get error messages?

4 Likes

I Used Deluge for the torrent
and yes Firewall is updated and active

and i have no open ports

 ╰─λ garuda-inxi
System:
  Kernel: 6.1.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=3306e85b-f7e8-44a3-a0f4-71cc158c5c32 rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: Cinnamon v: 5.6.7 tk: GTK v: 3.24.36 wm: muffin vt: 7 dm: LightDM
    v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME Z490-A v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 2601 date: 05/17/2022
CPU:
  Info: model: Intel Core i7-10700K bits: 64 type: MT MCP arch: Comet Lake
    gen: core 10 level: v3 note: check built: 2020 process: Intel 14nm family: 6
    model-id: 0xA5 (165) stepping: 5 microcode: 0xF4
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 3870 high: 4928 min/max: 800/5100 scaling:
    driver: intel_pstate governor: performance cores: 1: 3800 2: 3800 3: 3800
    4: 3800 5: 3800 6: 3800 7: 3800 8: 3800 9: 3800 10: 4928 11: 3800 12: 3800
    13: 3800 14: 3800 15: 3800 16: 3800 bogomips: 121596
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands
    process: GF 14nm built: 2016-20 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s ports: active: HDMI-A-1 empty: DP-1, DP-2,
    DVI-D-1, HDMI-A-2 bus-ID: 01:00.0 chip-ID: 1002:67df class-ID: 0300
    temp: 49.0 C
  Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: amdgpu
    unloaded: modesetting alternate: fbdev,vesa dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
    s-diag: 777mm (30.58")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: AOC Q32G1WG4 serial: <filter>
    built: 2019 res: 2560x1440 dpi: 93 gamma: 1.2 size: 697x393mm (27.44x15.47")
    diag: 800mm (31.5") ratio: 16:9 modes: max: 2560x1440 min: 720x400
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
    missing.
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:06c8 class-ID: 0403
  Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
    vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 1002:aaf0 class-ID: 0403
  Sound API: ALSA v: k6.1.7-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.64 running: yes
Network:
  Device-1: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0 chip-ID: 8086:15f3
    class-ID: 0200
  IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 3.21 TiB used: 1.41 TiB (43.8%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDS250G2B0C-00PXH0 size: 232.89 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 211070WD temp: 33.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: Samsung
    model: SSD 970 EVO Plus 250GB size: 232.89 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXM7 temp: 39.9 C
  ID-3: /dev/sda maj-min: 8:0 vendor: Toshiba model: HDWD130 size: 2.73 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD
    rpm: 7200 serial: <filter> rev: ACF0 scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 type: USB vendor: SanDisk model: Ultra
    size: 28.64 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 1.00 scheme: MBR
Partition:
  ID-1: / raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
    used: 22.04 GiB (9.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
    used: 22.04 GiB (9.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
    used: 22.04 GiB (9.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
    used: 22.04 GiB (9.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.25 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A gpu: amdgpu temp: 49.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1218
Info:
  Processes: 366 Uptime: 47m wakeups: 0 Memory: 31.25 GiB
  used: 3.12 GiB (10.0%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 Packages: 1286 pm: pacman pkgs: 1217
  libs: 315 tools: paru,yay pm: appimage pkgs: 0 pm: flatpak pkgs: 44 pm: snap
  pkgs: 25 Shell: fish v: 3.6.0 default: Bash v: 5.1.16
  running-in: gnome-terminal inxi: 3.3.24
Garuda (2.6.14-1):
  System install date:     2023-01-24
  Last full system update: 2023-01-25 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio
  Windows dual boot:       No/Undetected
  Failed units:            

???
Why you post in GNOME when you use Cinnamon?

Restart your PC

https://forum.deluge-torrent.org/viewtopic.php?t=54337

3 Likes

Last but not least:
https://wiki.archlinux.org/title/Deluge#Firewall

5 Likes

You have to open a port for Deluge in your gateway/router/firewall, not in Garuda. Garuda doesn't run a firewall on the OS by default.

2 Likes

ok, thanks

I downloaded Cinnamon and GNOME simultaneously.
Although I prefer Gnome, the USB somehow became corrupt, causing me to use Cinnamon when I actually prefer Gnome.

Sorry In My Head im using Gnome :grinning:

I appreciate you bringing that up.

Opening ports can be done automatically by most routers if you enable universal plug & play. It can be a security concern so I usually don't recommend that, but it would at least let you see if it's possible for you to connect to torrent networks.

1 Like

Thank you

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.