Sponsored Content
Full Discussion: Delete all ebtables rules
Top Forums UNIX for Advanced & Expert Users Delete all ebtables rules Post 302818283 by coolatt on Friday 7th of June 2013 09:04:31 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
br2684ctl(8)						      System Manager's Manual						      br2684ctl(8)

NAME
br2684ctl - RFC1483/2684 Bridge Daemon SYNOPSIS
br2684ctl [ -b ] [[ -c n ] [ -e 0|1 ] [ -p 0|1 ] [ -s sndbuf ] [ -a [itf].vpi.vci ]] ... PARAMETERS
-a [itf].vpi.vci ATM PVC number, VPI and VCI. (Required) -b Puts the process in the background. -c n br2684 interface number such as 0, 1, ... (Required) -e 0|1 Encapsulation method: 0=LLC, 1=VC mux (the default is 0 or LLC) -p 0|1 Payload method: 0=Routed, 1=Bridged (the default is 1 or Bridged) -s sndbuf Send buffer size. Default is 8192. DESCRIPTION
br2684ctl handles RFC1483/2684 bridged PDUs. This is most often used in ADSL scenarios where usually the subscribers' ethernet traffic is encapsulated in ATM AAL5 (by bridging ADSL modems) according to RFC2684. The subscriber-side ADSL modem can be external with an ethernet connector or an internal ADSL card in a PC. RFC1483 has been obsoleted by RFC2684. For example it is possible to set up your Linux box to handle several ATM PVC's with bridged-1483 (sometimes referred as SNAP) encapsula- tion. The Linux network stack might provide DHCP, IP masquerading, IP firewall services or bridge the Ethernet frames just like it had several ethernet interfaces. In fact it can have several (logical) ethernet interfaces, where ATM is just used as a carrier. USAGE
br2684ctl creates a new network interface named nas[n] which is bound to an specific ATM PVC. It requires two mandatory arguments: -c, the interface number, and -a, the ATM PVC. It should be noted that the order of the command arguments matter; -c should be followed by -a. You can create as many interfaces as necessary in one go, just make a long command line ;) For example, following command will create a nas0 interface which uses the ATM PVC with VPI=0 and VCI=401. You need to configure the PVC connection 0.401 on the ATM switch manually. % br2684ctl -c 0 -a 0.401 The command will only create a new interface nas0. Next step is to assign an IP address and netmask to the interface nas0 using the ifcon- fig command. Using ifconfig, you can also assign a Ethernet MAC address to the interface nas0, if necessary. % ifconfig nas0 192.168.2.1 netmask 255.255.255.0 Messages are logged to the LOCAL2 syslog facility. FILES
/var/run/br2684ctl-<iface>.pid NOTES
This man page is based on a tutorial by by Joonbum Byun <jbyun@megaxess.com> SEE ALSO
qos(7) 7 Jul 2003 br2684ctl(8)
All times are GMT -4. The time now is 07:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy