11-06-2015
SFTP script using firewall information
Hi,
i have a scripts which transfer a file from source to dest server. It uses the firewall information like IP, USERNAME, PASSWORD.
I wanted to know it belongs to source system firewall or the destination firewall info. How to check that firewall connection is working or no without running the script?
9 More Discussions You Might Find Interesting
1. Cybersecurity
UTIN Firewall script for Linux 2.4.x and iptables
==============================================
#!/bin/sh
#
# rc.firewall - UTIN Firewall script for Linux 2.4.x and iptables
#
# Copyright (C) 2001 Oskar Andreasson <bluefluxATkoffeinDOTnet>
#
# This program is free software; you can... (5 Replies)
Discussion started by: binhnx2000
5 Replies
2. UNIX for Dummies Questions & Answers
can anyone please tell a method to obtain version information of sftp in linux (3 Replies)
Discussion started by: aina_villatoro
3 Replies
3. Solaris
I have a Solaris 5.9 server and need send information via SFTP automaticaly, and set my username and password encrypted. How can I do this?
Best regards (1 Reply)
Discussion started by: irasela
1 Replies
4. Solaris
Hi,
How to find out which sftp client is installed in my system?
And the UserId and Password used for SFTP service.
I am using SunOS 5.8
Please help.
Thanks,
Raj (1 Reply)
Discussion started by: reeturaj_sunny
1 Replies
5. Shell Programming and Scripting
Hello,
I made a following script that check every 5 minutes to check firewall is running or not, if firewall down that raise an alert only once, but following script generate an alert every 5 minutes according to cronjob:
FILE="/var/log/fwstatus"
CHK="/tmp/fwstatus"
service... (1 Reply)
Discussion started by: telnor
1 Replies
6. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
7. Fedora
Hi
I have managed on numerous machine to set up sftp not too require a password - i finally have one that does not work and Im at a loss - looked around checked permissions etc
The 2 machines Ill call then source and target I need to sftp from source to target (previously the target has... (3 Replies)
Discussion started by: wwwdaryl
3 Replies
8. Shell Programming and Scripting
Hello,
Recently I have changed some crontab scripts which I execute to do different tasks mainly transfering some files from one server to the other.
The main change was the protocol from ftp transfer to sftp. Ftp server was the MS Windows default service, and Sftp server is an proprietary sw... (4 Replies)
Discussion started by: enux
4 Replies
9. UNIX for Beginners Questions & Answers
hello
how do we get detailed information of an sftp command?
for example when you type help on sftp, you get the available commands and their brief descriptions. What if you want to get detailed usage information, for example when you want to know what the command line options do..?
in... (5 Replies)
Discussion started by: milhan
5 Replies
LEARN ABOUT DEBIAN
fwb_ipt
fwb_ipt(1) Firewall Builder fwb_ipt(1)
NAME
fwb_ipt - Policy compiler for iptables
SYNOPSIS
fwb_ipt -fdata_file.xml [-4] [-6] [-V] [-dwdir] [-i] [-ooutput.fw] [-Ofw1_id,fw1_output.fw[,fw2_id,fw2_output.fw]] [-v] [-xc] [-xnN] [-xpN]
[-xt] object_name
DESCRIPTION
fwb_ipt is a firewall policy compiler component of Firewall Builder (see fwbuilder(1)). Compiler reads objects definitions and firewall
description from the data file specified with "-f" option and generates resultant iptables script. The script is written to the file with
the name the same as the name of the firewall object, plus extension ".fw".
The data file and the name of the firewall objects must be specified on the command line. Other command line parameters are optional.
OPTIONS
-4 Generate iptables script for IPv4 part of the policy. If any rules of the firewall refer to IPv6 addresses, compiler will skip these
rules. Options "-4" and "-6" are exclusive. If neither option is used, compiler tries to generate both parts of the script,
although generation of the IPv6 part is controlled by the option "Enable IPv6 support" in the "IPv6" tab of the firewall object
advanced settings dialog. This option is off by default.
-6 Generate iptables script for IPv6 part of the policy. If any rules of the firewall refer to IPv6 addresses, compiler will skip these
rules.
-f FILE
Specify the name of the data file to be processed.
-o output.fw
Specify output file name
-O fw1_id,fw1_output.fw[,fw2_id,fw2_output.fw]
The argument is a comma separated list of firewall object IDs and corresponding output file names. This option is used by fwbuilder
GUI while compiling firewall clusters.
-d wdir
Specify working directory. Compiler creates file with iptables script in this directory. If this parameter is missing, then ipta-
bles script will be placed in the current working directory.
-v Be verbose: compiler prints diagnostic messages when it works.
-V Print version number and quit.
-i When this option is present, the last argument on the command line is supposed to be firewall object ID rather than its name
-xc When output file name is determined automatically (i.e. flags -o or -O are not present), the file name is composed of the cluster
name and member firewall name rather than just member firewall name. This is used mostly for testing when the same member firewall
object can be a part of different clusters with different configurations.
-xt This flag makes compiler treat all fatal errors as warnings and continue processing rules. Generated configuration script most
likely will be incorrect but will include error message as a comment; this flag is used for testing and debugging.
-xp N Debugging flag: this causes compiler to print detailed description of the policy rule number "N" as it precesses it, step by step.
-xn N Debugging flag: this causes compiler to print detailed description of the NAT rule number "N" as it precesses it, step by step.
URL
Firewall Builder home page is located at the following URL: http://www.fwbuilder.org/
BUGS
Please report bugs using bug tracking system on SourceForge:
http://sourceforge.net/tracker/?group_id=5314&atid=105314
SEE ALSO
fwbuilder(1), fwb_ipf(1), fwb_pf(1)
FWB
fwb_ipt(1)