Can iptables do this?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My server has only one network card and I put two ip addresses on it. One is the normal one and the other is the local network address. The problem is HOW can I disable the firewall(iptables) within the local network(eth0:0) and only within the local network? Say I can connect to the server from any machine within the local network,say 192.168.0.2, or 192.168.0.10. But I can't connect to the server from outside,say 128.97.10.100 unless
I use ssh.


# /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:B0:D0:17:CB:63
         inet addr:128.97.10.123  Bcast:128.97.10.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:152377 errors:0 dropped:0 overruns:1 frame:0
         TX packets:19528 errors:0 dropped:0 overruns:0 carrier:0
         collisions:459 txqueuelen:100
         RX bytes:18778612 (17.9 Mb)  TX bytes:14614270 (13.9 Mb)
         Interrupt:11 Base address:0xec00

eth0:0    Link encap:Ethernet  HWaddr 00:B0:D0:17:CB:63
         inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:152377 errors:0 dropped:0 overruns:1 frame:0
         TX packets:19528 errors:0 dropped:0 overruns:0 carrier:0
         collisions:459 txqueuelen:100
         RX bytes:18778612 (17.9 Mb)  TX bytes:14614270 (13.9 Mb)
         Interrupt:11 Base address:0xec00

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:47572 errors:0 dropped:0 overruns:0 frame:0
         TX packets:47572 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:3471556 (3.3 Mb)  TX bytes:3471556 (3.3 Mb)

Ding


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux