(Criou página com ' <pre> [topmedfw-centro]/# ifconfig eth0 Link encap:Ethernet HWaddr 10:78:D2:25:84:C8 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 …') |
|||
| Linha 1: | Linha 1: | ||
| - | |||
[topmedfw-centro]/# ifconfig | [topmedfw-centro]/# ifconfig | ||
| + | <pre> | ||
eth0 Link encap:Ethernet HWaddr 10:78:D2:25:84:C8 | eth0 Link encap:Ethernet HWaddr 10:78:D2:25:84:C8 | ||
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 | inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 | ||
| Linha 38: | Linha 38: | ||
| - | + | ||
[topmedfw-centro]/# cat /etc/brazilfw/logical/local | [topmedfw-centro]/# cat /etc/brazilfw/logical/local | ||
| + | <pre> | ||
LINK_ALIAS="local" | LINK_ALIAS="local" | ||
LINK_CONNECTION="local" | LINK_CONNECTION="local" | ||
| Linha 48: | Linha 49: | ||
| - | + | ||
[topmedfw-centro]/# cat /etc/brazilfw/logical/internet | [topmedfw-centro]/# cat /etc/brazilfw/logical/internet | ||
| + | <pre> | ||
LINK_ALIAS="internet" | LINK_ALIAS="internet" | ||
LINK_CONNECTION="internet" | LINK_CONNECTION="internet" | ||
| Linha 59: | Linha 61: | ||
| - | + | ||
[topmedfw-centro]/# edit /etc/brazilfw/ports/forward.cfg | [topmedfw-centro]/# edit /etc/brazilfw/ports/forward.cfg | ||
| + | <pre> | ||
#<active> <alias> <protocol> <port> <ip-destination> [port] | #<active> <alias> <protocol> <port> <ip-destination> [port] | ||
#active: yes/no | #active: yes/no | ||
[topmedfw-centro]/# ifconfig
eth0 Link encap:Ethernet HWaddr 10:78:D2:25:84:C8
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:6094 errors:0 dropped:0 overruns:0 frame:0
TX packets:6166 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1213945 (1.1 MiB) TX bytes:3168106 (3.0 MiB)
Interrupt:43 Base address:0x6000
eth1 Link encap:Ethernet HWaddr 00:02:44:48:96:80
inet addr:189.34.51.131 Bcast:0.0.0.0 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:6282 errors:0 dropped:0 overruns:0 frame:0
TX packets:5636 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3150212 (3.0 MiB) TX bytes:1178316 (1.1 MiB)
Interrupt:19 Base address:0xcc00
ifb0 Link encap:Ethernet HWaddr 5E:2A:DC:6A:7D:10
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:1500 Metric:1
RX packets:158 errors:0 dropped:0 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10849 (10.5 KiB) TX bytes:10849 (10.5 KiB)
[topmedfw-centro]/# cat /etc/brazilfw/logical/local
LINK_ALIAS="local" LINK_CONNECTION="local" LINK_TYPE="static" LINK_IP="192.168.0.1" LINK_NETMASK="255.255.255.0"
[topmedfw-centro]/# cat /etc/brazilfw/logical/internet
LINK_ALIAS="internet" LINK_CONNECTION="internet" LINK_TYPE="dhcp" LINK_DOWNSTREAM="0" LINK_UPSTREAM="0" LINK_WEIGHT="1"
[topmedfw-centro]/# edit /etc/brazilfw/ports/forward.cfg
#<active> <alias> <protocol> <port> <ip-destination> [port] #active: yes/no #protocol: tcp/udp/all #alias: all/name of logical connection yes internet all 3389 192.168.0.20 3389 yes internet all 3333 192.168.0.100 3389 yes internet all 7161 192.168.0.100 161