Search Results

Search: Posts Made By: hermouche
3,282
Posted By hermouche
Thanks a lot RudiC -:) but It is not so easy for...
Thanks a lot RudiC -:) but It is not so easy for me to follow this script .(to high for me)
Any way i am keeping it and i will study it later on.

I should say that I learned a lot from you,...
3,282
Posted By hermouche
Thank you for your answer but you are talking to...
Thank you for your answer but you are talking to a newbee in scripting so ?!

Thanks again .
3,282
Posted By hermouche
LOL, actually I am using all the combined codes...
LOL, actually I am using all the combined codes of all the previews posts for my firewall ;-) (your codes)

Now, this is different, i want to fill a file /etc/ethers with these two columns IP &...
3,282
Posted By hermouche
Thank you for the very quick reply Scott It...
Thank you for the very quick reply Scott
It seem's so simple when we see the solution ......

Thanks again,

---------- Post updated at 10:45 AM ---------- Previous update was at 10:35 AM...
3,282
Posted By hermouche
Hy, I'm still working on the same firewall...
Hy,

I'm still working on the same firewall :-)

I've got a file with such a following lines:
192.168.0.6 00:71:CC:6E:A3:33
192.168.0.7 C0:38:96:72:8B:5B
192.168.0.8 ...
3,282
Posted By hermouche
Exactly, that's my GOAL RudiC :b: Thanks ...
Exactly, that's my GOAL RudiC :b:

Thanks

---------- Post updated at 02:37 PM ---------- Previous update was at 02:35 PM ----------

I will try to put every thing in just one script and i will...
3,282
Posted By hermouche
Yes as usual you are the best. It works...
Yes as usual you are the best. It works perfectly.
You 're right i should post my own script first and then .....

Well the result will be written in a file called "ipblocked"

and then i will...
3,282
Posted By hermouche
Hy Rudic, nice to hear you again. Well, NO they...
Hy Rudic, nice to hear you again.
Well, NO they are not included.

Thanks RudiC

---------- Post updated at 01:49 PM ---------- Previous update was at 01:48 PM ----------

Just those who are...
3,282
Posted By hermouche
Listing IPs from the dhcpd.conf
Hy everybody,

Within a dhcpd.conf file, we got some fixed IP adresses from 192.168.0.1 - 192.168.0.254.

Sample:
#ddns-update-style interim;
ddns-update-style none;
ignore client-updates;...
2,346
Posted By hermouche
Of course you are welcomed :) Thank you sir.
Of course you are welcomed :)
Thank you sir.
2,346
Posted By hermouche
Yeah, you got it RudiC, thanks a lot -:) I...
Yeah, you got it RudiC, thanks a lot -:)

I am jealous, i want to got your skills in scripting .

can you suggest any book, tutorials, .... for me.

Thank you very much for your patience with...
2,346
Posted By hermouche
I am sorry, RudiC, The following is what i...
I am sorry, RudiC,

The following is what i typed (code):
sed -n '/hardware ethernet/ {s///; h; d;}; /fixed-address / {s///; G; s/[;\n]//g; s/ / -p tcp -m multiport --dports...
2,346
Posted By hermouche
Oh yes i need it for the other thread...
Oh yes i need it for the other thread (https://www.unix.com/shell-programming-and-scripting/275112-bash-script-who-maps-ip-mac-address.html) , it will be the ipmacmap file if you remember :)


...
2,346
Posted By hermouche
Script getting IP's and MAC addresses
Hy over there,

Lets make it simple :)

Using a bash script, how to grep only the ip address and the mac address and put them in a file:.

for example from the dhcp.conf file we got such...
5,792
Posted By hermouche
Agree with you RudiC. Thanks for your good...
Agree with you RudiC.

Thanks for your good job :b:

Red
5,792
Posted By hermouche
YES exactly i want to execute these two lines...
YES exactly i want to execute these two lines hopefully -:)
If i launch manually the two lines (one by one) it will do the work.

So now how to include them into the bash script !!!

I Think...
5,792
Posted By hermouche
These two lines are OK , i can see them on the...
These two lines are OK , i can see them on the screen.

What i want to do is :
These two lines should be inside my firewall and not just displayed on the screen (netfilter 'iptables')

if i use...
5,792
Posted By hermouche
OK, thank you very much RudiC, It shows the...
OK, thank you very much RudiC,

It shows the match between the IP and the MAC :b:

Now i want the result of your code to be part of the firewall. I mean with the following command:



i...
5,792
Posted By hermouche
Bash script who maps IP with MAC address
Thanks a lot RudiC & Scruticizer for your reply,

Well,
1- I've got all the IP addresses with their respective MAC addresses in the DHCP server

2- I can also edit a file where i got two...
5,792
Posted By hermouche
Bash script who maps IP with MAC address
Hy every body,

Unfortunately and without success, i want to write a bash script who maps a known IP addess to a known MAC address using iptables and for the FORWARD chain.

Within the DHCP...
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 02:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy