LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-05-2006, 04:17 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
add vitual interface eth0:2 to iptables


Can some body tell me how to add eth0:2 to these entries in iptables,

-A PREROUTING -d 203.143.24.115 -i eth0:2 -p tcp -m tcp --dport 5222 -j DNAT --to-destination 192.168.11.15:5222

-A FORWARD -d 192.168.11.15 -i eth0:2 -p udp -m udp --dport 5222 -j ACCEPT


this gives me a worning
Warning: wierd character in interface `eth0:2' (No aliases, :, ! or *).

thank you
 
Old 04-05-2006, 05:00 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i'm pretty sure aliases don't work on iptables...

by specifying the interface and the destination IP you should be set...
 
Old 04-06-2006, 12:22 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Thanks win32ux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bringing up interface eth0 Delaying eth0 initialization. [ FA bansal_ashok Linux - Networking 4 05-27-2005 10:09 AM
interface eth0 is not (yet?) active jorcas SUSE / openSUSE 1 11-22-2004 06:53 PM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM
eth0 interface... InSane103 Linux - Networking 1 07-12-2003 11:26 AM
eth0 interface fails linuxbeak Linux - Newbie 5 02-24-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration