Ubuntu Networking :: Iptables Not Clearing MASQUERADE?

May 29, 2011

If I add a rule to iptables:

Code:
iptables -t nat -A POSTROUTING -o eth4 -j MASQUERADE
it does not get removed when I try to clear all the rules:

[code]...

View 4 Replies


ADVERTISEMENT

Ubuntu Networking :: Clearing Logged Info From Iptables?

Mar 8, 2010

This is actually for my router, but it's linux based, Anyway, I currently have a router running tomato linux firmware and at 30 minute intervals I have it send a log file of bandwidth usage to a network drive.

From there, a program calculates the bandwidth used by each IP by adding up all the totals recorded in the log files. The log files are the output of the router running the command:

Code:
iptables -L traffic_in -vn

What doesn't happen though, which I'd prefer, is that the bandwidth counts inside the router get cleared upon writing each log file. This way, I don't end up counting the same bandwidth use multiple times. So my question is, is there a way to erase/reset the data count in the iptables?

View 3 Replies View Related

Fedora Security :: Iptables Masquerade, Can Ping But No Http Access?

Dec 13, 2009

I've got two routers, 10.0.0.0/23 and 192.168.2.0/24, which are joined by a Linux box with interfaces eth0 (10.0.0.2) and ra0 (192.168.2.2). I've got masquerading for ra0, and a route to 192.168.2.0/24 on 10.0.0.0's router. I CAN ping hosts on 192.168.2.0 from 10.0.0.0 just fine, but I CANNOT access web pages.Strangely, If I enable masquerading on eth0, and add a route to 192.168.2.0s router to 10.0.0.0, I can ping AND access web pages from 192.168.2.0Here is my current iptables

Code:
*filter
:INPUT ACCEPT [0:0]

[code]...

View 14 Replies View Related

Security :: Iptables Requirement \ Package Passed Through Masquerade Don't Pass Through The Prerouting Rule?

Nov 26, 2010

The iptables has every rule set correctly, the users in the subnet works great, but I have the following issue.every user connect to a mysql running on the internet through the port 3306, the forward and masquerade do the job. Now I have a user in the outside, and he wants to connect to a mysql in a certain machine (Not the gateway), prerouting rules solve my problems, but all the packages from the inside users goes now to that certain machine. I would like something like if the package passed trough masquerade don't pass trough the prerouting rule, and if it come from the outside (Not a package that come from a petition from the inside) pass trough the prerouting rule.

View 6 Replies View Related

Networking :: NAT/Masquerade Not Working?

Jun 4, 2010

I have a linux iptables-based firewall (used firestarter) running on an Ubuntu 9.04. Kernel is 2.6.28. My ISP called me the other day to say that my internal IP addresses (10.5.0.x) are showing up outside the firewall on one of the downstream routers (probably the router on my roof providing wireless internet access to my rural house). I have forwarding and NAT configured using iptables and last night I logged into the roof antenna router (a MicroTik) and ran Torch (that lets you see the connections through the router) and sure enough, amid mostly entries showing my NAT ip address, I saw several ip addresses with internal addresses (10.5.0.5, 10.5.0.9, and 10.5.0.19, all, coincidently (?) MAC Pro laptops) in the list of connections. How is this possible? I thought by using NAT/Masquerade with iptables, that iptables would rewrite all packets so that only my external ip address (192.168.250.253) would appear. Can someone who understands this explain whether these internal addresses should ever appear outside my firewall/router (with NAT enabled)?

I have a rule:

-A POSTROUTING -o eth0 -j MASQUERADE

that I had believed would masquerade all addresses (and perform the NAT translation). In fact, I haven't changed anything on my firewall in a very long time (and the last kernel software update was in March, I believe).

I didn't do the bulk of the iptables rules myself, rather letting firestarter to the setup, for which I have NAT enabled. I get no errors on startup, which suggests that all the relevant modprobes for nat, masquerading, and forwarding are successful.

View 3 Replies View Related

Ubuntu Networking :: How To Masquerade (Share Internet Connection) In 10.04

Aug 12, 2010

I have two wireless cards on my pc. One connected to the Internet and one free. I would like to connect the free one to a adhoc network with my netbook to share my connection because my netbook cannot reach the other side of my home.

View 1 Replies View Related

Networking :: Netstat Command - No Support For IP Masquerade

Nov 23, 2009

While issuing the command netstat -M it shows netstat: no support for `ip_masquerade' on this system. But this system is used as a gateway and iptable rules are set for ip forwarding. Also internet is getting another machine through this machine. What about the message?

View 3 Replies View Related

Networking :: Ubuntu (lucid) - Clearing/flushing/purging Slapd?

Aug 4, 2010

I'd like to clear the slapd DB so that I could reinstall it from scratch, however, when I remove the package and reinstall it, I still get some items in there.How can I purge/flush/remove everything from slapd?Instructions I follow to do the set up?https://help.ubuntu.com/10.04/server...ap-server.html

View 3 Replies View Related

Software :: Postfix - Masquerade Domains But Not Users

Aug 18, 2010

I want to change all outgoing email from my Ubuntu server running postfix to change (masquerade) the username. eg. james@example.com will appear as 'From' 'admin@example.com'. I already know how to masquerade domains, but not users.

View 3 Replies View Related

Ubuntu :: Code For Clearing RAM As Cache?

Jun 20, 2010

post the code for clearing RAM as cache?

View 2 Replies View Related

Ubuntu :: Clearing ALT+F2 History In 11.04 / Natty

May 12, 2011

How do I clear the ALT+F2 'run a command' history that appears in Ubuntu Natty? The Terminal command I used to use in 10.10 to clear the history no longer works in the new Unity command launcher. I've tried searching within files on my hard drive to see if I can find where the data is stored, but no such luck.

View 3 Replies View Related

Ubuntu :: Clearing Information About A Wireless Network?

Sep 18, 2010

How do I get rid of the information that Ubuntu stores for connecting to wireless networks?

I'm asking because I have two wireless networks nearby: my personal network and my school's network. I tried one time to connect to the school's network using the standard prompts but none of them worked - however I could connect to my personal network just fine. The problem is that Ubuntu remembered the incorrect information I entered for my school's network and keeps trying to connect to it.

It's annoying because whenever I'm in range of both networks I keep having to manually tell it to stop connecting to my school's network and to connect to my personal one instead.

View 2 Replies View Related

Ubuntu :: Clearing GThumb Recent Folders

Oct 17, 2010

Is there any way to clear the list of recent folders when you click Move or Copy on an image in gThumb? It's gotten way too big, so now it's not really helpful at all, with folders I don't even use.

View 1 Replies View Related

Ubuntu :: 11.04 - Clearing History From Apps Doc Panel

Apr 15, 2011

Ubuntu 11.04 Removing History. In the new 11.04 on the apps doc panel on the left hand side there is a button called "Files & Folders", when clicked on it brings up.

recent
downloads
favorites

Is there a way to clear the history, maybe disable it altogether or at the very least limit the amount of history it retains?

View 1 Replies View Related

Ubuntu :: Manually Clearing Firefox's Cache?

Jul 1, 2011

a few days ago i set my FoxyProxy settings to tor. I needed it to make a few raid boards on 4chan and those can get you banned if you post.

So anyways, i go on this forum about a phone and i accidentally refreshed the page, but i haven't switched from proxy to my default settings and so all of a sudden a message appeared "Sorry, ###### you are banned from this forum."

I tried clearing cache, cookies and whatnot through firefox' options but still i get that message, i installed Midori for a quick test and it seems to work there (I'm not banned) but never on firefox, even rebooted and still nothing.

I really hate the ads with Midori as i use Adblock for firefox.

View 5 Replies View Related

Ubuntu :: Try `iptables -h' Or 'iptables --help' For More Information - ' Not Found.4.4: Host/network `98.200.58.73

Nov 3, 2010

I recently installed a new Ubuntu PC that runs iptables and PSAD. I had the same script on another Ubuntu PC, but when I copied the script onto the new PC, I got this error. I don't remember where I found the tutorial for this, all I know is that this is the script (Edited for my usage):

Code:

#!/bin/bash
# Script to check important ports on remote webserver
# Copyright (c) 2009 blogama.org
# This script is licensed under GNU GPL version 2.0 or above

[code]....

Safe.txt contains:

Code:

127.0.0.1
192.168.1.8
192.168.1.1
98.200.58.73
192.168.0.1

And the error message generated is:

Code:

root@NETWORK-SERVER:/var/ddosprotect# ./ipblock.sh
' not found.4.4: host/network `127.0.0.1
Try `iptables -h' or 'iptables --help' for more information.
' not found.4.4: host/network `192.168.1.8

[code]....

View 3 Replies View Related

Ubuntu Servers :: Setup Iptables Rules In /etc/if-up.d/iptables?

Apr 16, 2011

I am running Ubuntu server 10.10 and trying to setup iptables rules in /etc/if-up.d/iptables

Quote:
root@host# cat /etc/network/if-up.d/iptables
#!/bin/sh -e
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Problem is that iptables doesn't get updated and I don't see them when iptables -L is executed after reboot.

View 2 Replies View Related

Ubuntu Installation :: Cleaning Up - Clearing Out Obsolete Packages ?

May 1, 2010

I just upgraded to 10.04, and it seems to be working well. At the very end of the process, it asked me if I wanted to delete my obsolete packages, and I chickened out and said "no". Now I have a truckload of taken space on the root drive, and am wondering if there is an easy way to complete this last step of clearing out obsolete packages now that 10.04 has been fully installed?

View 2 Replies View Related

Ubuntu Security :: Truecrypt Container And Clearing Swap?

Sep 27, 2010

my current plan is to create a truecrypt container with the whirlpool hash. This container will be located on a hdd that is not where my OS will be located (so a separate physical sata drive).My concern is when this container is accessed, that some of the password information could be stored in my swap partition (which is on the main drive where the OS "/" is located)

I would like to have a script or command I could run that after I unmount those drives (or just halt the system) that my swap (and ram too if possible) could be wiped (or like overwritten with the shred command). Also, am I going about this the right way, or should I just use truecrypts FDE on the entire drive? In addition, when Ubuntu does it's default install, does it create a swap file in addition to a swap partition? If it does, would that be another vulnerability? If it is, how do I prevent this from happening?

I welcome any input you have on this. I am aware that once the drive is mounted, it is vulnerable, but I want the data to be secure as possible once my computer is turned off. Also, I have read that there are ram exploits where it holds your passwords for up to a few minutes after you turn the machine off, does anyone know how long that it and is there a way to clear it, or will only time let it fade?

View 1 Replies View Related

Software :: Clearing BIOS Password With GDB?

Aug 13, 2010

I came across this article: [URL] while looking for a way to clear my BIOS password. I wonder if this is possible with gdb? I've had no luck by trying "output x70 2e" and "output 70 2e", the former asks for a symbol table to be loaded.

View 3 Replies View Related

Software :: Clearing Log Files On Boot?

Jan 19, 2009

How to clear log files, also how to clear log files on boot.

View 3 Replies View Related

Slackware :: Tmp Not Clearing Out At Boot Time

Dec 27, 2010

I've been using cron to clear /tmp at boot time but thought I'd try another method. After doing a little research I added the following line:

Code:
( cd /tmp && rm -rf -- * .* 2>/dev/null )
to /etc/rc.d/rc.S immediately after:

Code:
# Done checking root filesystem

And /tmp is not clearing out at boot time. This method seems to work for others.

View 14 Replies View Related

Fedora Servers :: Unable To Restore My Iptables From Iptables-save After Upgrading

Nov 26, 2010

I am unable to restore my iptables from iptables-save after upgrading Fedora. I cannot get iptables-restore to work, and I have resorted to entering rules manually using the GUI.

View 2 Replies View Related

General :: When Restart The Iptables Service Then The Firewall Entries Are Again Shown In Iptables?

Sep 17, 2010

I am facing a strange problem witht my iptables as there are some firewall entries stored somewhere which is displaying the below firewall entries even after flushing the iptables & when I restart the iptables service then the firewall entries are again shown in my iptables as shown below,

[root@myhome ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

[code]....

View 6 Replies View Related

OpenSUSE :: Clearing Files - KDE Unable To Start ?

Aug 27, 2011

My other PC has ground to a halt as the tmp file is full: "/tmp out of disk space" & "KDE unable to start". I have scoured commands and can't find how to clear all the junk apart from move it somewhere else.

View 5 Replies View Related

OpenSUSE Install :: Clearing Screen Of Second Monitor?

Dec 3, 2009

I have a dual-monitor display with a Nvidia GEforce 9400 video card. The login screen has a normal login on the primary display but the second display contains fragments from the previous session. I would like to clear the secondary display so that it does not display information from the previous session.

View 1 Replies View Related

General :: Prevent Vim From Clearing The Clipboard On Exit

Jun 20, 2011

If I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?

View 1 Replies View Related

Software :: Need Info On Clearing Firefox History?

Aug 5, 2011

How does one clear all Firefox history?

View 1 Replies View Related

Programming :: Clearing Stdin Obtained From Pipe

Mar 14, 2010

I have a small program that reads stdin from a pipe using fgets. Now fgets blocks for the first line but after that it will not block.

The code, my_echo.c -
int main(int argc, char **argv) { char buf [2000] ;
char* pc ; printf("hello ") ; while (1)
{ buf[0] = (char) 0 ;
pc = fgets(buf, sizeof(buf), stdin);
if (pc != NULL) printf("%s ",buf); } return 0; }

How its called
* In terminal window 1: ./my_echo < my_fifo
* In terminal window 2: echo "1234" > my_fifo
* In terminal window 1: prints hello then 1234.
* Checking with ksysguard or top shows that my_echo is consuming 40% of CPU time.

Adding a few printf's shows that the gets is not blocking and returns a null pointer.
* In terminal window 2: echo "qwerty" > my_fifo
* In terminal window 1 qwerty prints.
I want a read function that does in fact block so my program does not tie up CPU time, read does not block.

View 7 Replies View Related

Slackware :: Clearing Temp Directory At Shutdown

Nov 9, 2010

I just realized that my /tmp directory is not being cleared at shutdown time. How to enable this? I'm running -current.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved