03-25-2010
By default, no, it's not going to let anything through.
To let ssh and http, you could set the following (change to your needs)
root@# ufw limit ssh/tcp
Rules updated
root# ufw allow proto tcp from 192.168.0.0/16 to any port 80
Rule added
root# ufw status
Status: active
To Action From
-- ------ ----
22/tcp LIMIT Anywhere
80/tcp ALLOW 192.168.0.0/16
The man page for ufw shows probably everything you would need to know.
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
In ubuntu man page there is this command. What are values of ARGS I can use? (0 Replies)
Discussion started by: mojoman
0 Replies
2. Ubuntu
Hi ,
In our ubuntu server 10.10 ,we are getting below logs .Every day i need to restart server ,other wise it will not accessible.Some times ,i need to restart two times.
When i ping google.com ,it was very slow .some times host not reachable .After reboot ,it will ping as good.
... (0 Replies)
Discussion started by: srinivasa
0 Replies
3. IP Networking
Hi,
I make an ubuntu based gateway with dns, dhcp, proxy and a firewall.
The problem is with the firewall, a classroom is connected to gw.eth1 with private ip
17.18.43.XX and gw.eth0 with public ip 134.201.34.XX is connected to internet trought 134.201.3.1 and others server like LDAP on... (0 Replies)
Discussion started by: falafel
0 Replies
4. UNIX for Beginners Questions & Answers
I am trying to force all my tun0's traffic through VPN but some some reason, the ufw is not working the way I want to.
Below are the commands that I have executed.. I am able to connect to my SSH and NFS server but for some reason that I am unable to understand, I am unable to surf the net.
... (0 Replies)
Discussion started by: soichiro
0 Replies
5. Linux
Hi everyone,
I have had trouble getting several versions of Linux stable on my machine over the last few months.
I do not think the issue is with the machine. Windows ran fine on it for a long time.
The current issue is that whenever I lock the screen then come back after a long time I find... (2 Replies)
Discussion started by: mojoman
2 Replies
LEARN ABOUT REDHAT
tcp-env
tcp-env(1) General Commands Manual tcp-env(1)
NAME
tcp-env - set up TCP-related environment variables
SYNOPSIS
tcp-env [ -rR ] [ -ttimeout ] program [ arg ... ]
DESCRIPTION
The input for tcp-env must be a TCP connection. tcp-env finds out information about that connection, puts the information into several
environment variables as described in tcp-environ(5), and runs program with the given arguments.
Usually tcp-env is run from inetd. It might instead be run from another server that already sets up the right environment variables; if
PROTO is set to TCP when tcp-env is invoked, tcp-env assumes that all the other variables are set up properly, and it does not check
whether the input is a TCP connection.
OPTIONS
-r (Default.) Attempt to obtain TCPREMOTEINFO from the remote host.
-R Do not attempt to obtain TCPREMOTEINFO from the remote host.
-ttimeout
Give up on the TCPREMOTEINFO connection attempt after timeout seconds. Default: 30.
SEE ALSO
tcp-environ(5), inetd(8)
tcp-env(1)