LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2021, 07:48 AM   #16
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,326
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726

I agree, FTP is not intuitive and would go as far as to say that it should not be part of any normal curriculum any more. Furthermore there are differences between active and passive FTP connections. Take a look at the sequence diagram for FTP. You can see how complicated it is from a packet filter perspective, as you are finding out first hand. Notice also how it was designed decades before packet filters became common, back when direct connections to the Internet itself were expected on both ends. Therefore FTP does not work well through NAT, for example.
 
Old 05-31-2021, 09:35 AM   #17
Big T
LQ Newbie
 
Registered: May 2021
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
I agree, FTP is not intuitive and would go as far as to say that it should not be part of any normal curriculum any more. Furthermore there are differences between active and passive FTP connections. Take a look at the sequence diagram for FTP. You can see how complicated it is from a packet filter perspective, as you are finding out first hand. Notice also how it was designed decades before packet filters became common, back when direct connections to the Internet itself were expected on both ends. Therefore FTP does not work well through NAT, for example.
yea also bash script for me all programming is hard, but especially bash scripting I don't understand how to create scripts that work
 
Old 05-31-2021, 09:52 AM   #18
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,326
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Like in any other programming, shell scripting is about taking it one small piece at a timeand then gradually putting the working pieces together.

There are a lot of good guides for shell scripting. Here are two:

(The book ought to be available at your library, but can otherwise be ordered inter-library loan or just plain bought. If none of those are an option, you can still make do with an CC-licensed PDF.)

Also, take advantage of the ShellCheck site to inspect your scripts.
 
  


Reply

Tags
ftp, iptables firewall block, ssh remote



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need HELP with IPTABLES RULES on an ubuntu router ASAP!! Big T Linux - Networking 2 05-30-2021 01:22 PM
[SOLVED] /etc/udev/rules.d/40-libsane.rules and /etc/udev/rules.d/S99-2000S1.rules missing LABEL=libsane_rules_end mumahendras3 Slackware 6 03-09-2020 02:27 AM
auditctl -l not showing any rules even though i have rules written in audit.rules alphaguy Linux - Security 1 02-07-2014 05:28 PM
need help fixing my udev rules or ivman rules hedpe Linux - Hardware 2 03-18-2006 10:07 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration