here is my iptables file:
When I apply it (sudo ./<file name>), it works without any error.
But then, I cannot access internet anymore from pc in internal network.
Before I apply this bash, it worked with a simple masquerade:
NB.: to remove the block chain, you need to do the following:
otherwise, it's unremovable with the following error message: 'iptables: Directory not empty'
Of course,later on, other rules will be put inside iptables (anti-flood, anti-fragments, anti-spoof (although should be useless here), no malformed pkts, and so on...)
any idea folks?
Many thanx to you.
Last edited by Don Cragun; 08-11-2013 at 07:42 PM..
Reason: Change ICODE tags to CODE tags; add other CODE tags
Hello to everybody
How can I tell if this command is working?
Fedora terminal:
$ sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECTI understand that after this command Firefox should be unable to receive RTMP streaming that use port 1935. But nothing changes Firefox receives the... (0 Replies)
Hi guys
I'm running on debian on a small embedded system. I have a ppp interface that is connected to the internet (and works). My unit also has wifi access point (which works and I can connect to it).
I want to allow connections to the wifi to be able to use the internet from ppp0... (1 Reply)
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Hi,
On my linux server I have 2 routes:
Code:
nexthop via 123.201.254.5 dev eth0 weight 38 nexthop via 111.93.155.149 dev eth2 weight 36
I have a iptable rule like :
iptables -t nat -A PREROUTING -p tcp -i eth0 -d... (5 Replies)
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
I have a client machine that was built and loaded with SCO UNIX 2.1.3, (yes it is old). The machine worked fine on the closed network that I tested on in my shop. I then had to change it to the network that it would be connected to. Below is the host file, router and subnet mask file that I usually... (0 Replies)
1|foo|bar
2|usa|ll
3|usa|vg
4|usa|vg
5|bar|vg
6|usa|vg
7|usa|ll
8|uk|nn
9|foo|manu|bar
10|uk|bb
11|foo|mm
12|kuwait|jkj
13|kuwait|mm
14|dubai|hh
awk '/foo/,/bar/' test_file1----command run at the prompt
output should have been the first 3 lines......
1|foo|bar (1 Reply)
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
can someone tell me the meaning of this commnad,
If you want to see a grand total of CPU time for a program when it finishes running, you can use the time command. At the Unix prompt, enter:
time java myprog
Replace myprog with the name of the program you are running. The following is an... (1 Reply)