Delete all ebtables rules


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Delete all ebtables rules
# 1  
Old 06-07-2013
Debian Delete all ebtables rules

Hi All,
I configured a bridged debian firewall using bridging utilities.
This works fine & I have been monitoring all users connecting to the internet & bandwidth usage.

There are 2 interfaces eth0 & eth1 which i have configured as bridged interface br0.

Today, I installed squid on the machine & used both IPTABLES & EBTABLES to transparently forward port 80 to port 3128.

This part is working OK. I now want a script that will quickly revert me back to my bridged linux firewall by removing all IPTABLE & EBTABLE rules..i.e remove the forwarding of port 80 to SQUID 3128

Thanks
# 2  
Old 06-10-2013
Run autoexpect and set it back, and you will have an expect script that does it. Basically, you could swap files back but then you need to wack the daemons and kernel so they reread config. You might use static files and point to the favored set with sym-links.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Rsync with --delete but do not delete peer dirs on target

rsync with --delete won't honor the delete if the source is something/*. I want the delete to work, but not to delete directories on the target that are peer to the intended directory. For example, using these source and target file structures: Source on desktop: ~/ Money/ ... (4 Replies)
Discussion started by: JavaMeister
4 Replies

2. Programming

Mismatched free() / delete / delete [] line no missing

Could you tell me the possibilities of the reason to get the Mismatched free() / delete / delete . I unable to see the line no in the valgrind report. it displays the function name. with that function name, I am not able to find where exactly the issue is there.I am getting the Mismatched free()... (3 Replies)
Discussion started by: SA_Palani
3 Replies

3. Linux

Mismatch free() / delete / delete [C++]

Dear All, I got the valgrind report as below Mismatch free() / delete / delete at 0x4006895: operator delete(void*) (vg_replace_malloc.c:480) by 0x8EA6D11: corefunction. I supect that it is expect me to write free() instead of delete p1. Given the the code. I have the structure. ... (7 Replies)
Discussion started by: SA_Palani
7 Replies

4. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies

5. Shell Programming and Scripting

Delete lines based on Rules

Hi My requirement is very simple . I juts need to delte some lines from a file. here comes theactual scenario I have some data in file like say srinivasa prabhu kumar antony srinivas king prabhu antony srinivas prabhu king yar venkata venkata kingson srinivas... (6 Replies)
Discussion started by: ptappeta
6 Replies

6. Red Hat

Need Script to ZIP/SAVE & then DELETE Log file & DELETE ZIPS older than 12 months

ENVIROMENT Linux: Fedora Core release 1 (Yarrow) iPlanet: iPlanet-WebServer-Enterprise/6.0SP1 Log Path: /usr/iplanet/servers/https-company/logs I have iPlanet log rotation enabled rotating files on a daily basis. The rotated logs are NOT compressed & are taking up too much space. I... (7 Replies)
Discussion started by: zachs
7 Replies

7. Red Hat

Packet change and redirect using ebtables

Hey all I need your help with ebtables. I want to redirect traffic through local interfaces. I have am Ubuntu linux machine with several NICs. (I understand that ebtables is the same for RH)... eth0 and eth1 are part of a bridge (br0) and they are connected to tap device. On eth0 I get... (0 Replies)
Discussion started by: d0g
0 Replies

8. Post Here to Contact Site Administrators and Moderators

rules

rules are there but asking 2 questions out of 30 is surely understanable esp when the instructor gives an open book test and urged us to seek answers anywhere we can except from him directly. (2 Replies)
Discussion started by: vrn
2 Replies

9. Post Here to Contact Site Administrators and Moderators

Rules

https://www.unix.com/showthread.php?t=2971 Spelling Error. You 'Adhere' to rules, not adhear. (2 Replies)
Discussion started by: Tux
2 Replies
Login or Register to Ask a Question