|
84 | 84 |
|
85 | 85 | start_obfs4() { |
86 | 86 | echo -e "${YELLOW}Starting obfs4 service...${NC}" |
87 | | - obfs4proxy -logLevel INFO -enableLogging & |
| 87 | + obfs4proxy -logLevel INFO -enableLogging >/dev/null 2>&1 & |
88 | 88 | if [ $? -eq 0 ]; then |
89 | 89 | echo -e "${GREEN}obfs4 service started successfully.${NC}" |
90 | 90 | else |
@@ -121,7 +121,7 @@ nebula_menu() { |
121 | 121 | echo "||__| \__| |_______||______/ \______/ |_______/__/ \__\ |" |
122 | 122 | echo "| |" |
123 | 123 | echo "+--------------------------------------------------------------+" |
124 | | - echo -e "| Telegram Channel : ${MAGENTA}@AminiDev ${NC}| Version : ${GREEN} 7.0.0 ${NC} " |
| 124 | + echo -e "| Telegram Channel : ${MAGENTA}@AminiDev ${NC}| Version : ${GREEN} 7.1.0 ${NC} " |
125 | 125 | echo "+--------------------------------------------------------------------------------+" |
126 | 126 | echo -e "| Telegram Channel Sponsor : ${GREEN}VNodePro ${NC} " |
127 | 127 | echo "+--------------------------------------------------------------------------------+" |
@@ -168,8 +168,11 @@ network: |
168 | 168 | addresses: |
169 | 169 | - $ipv4_local/24 |
170 | 170 | EOL |
| 171 | + # Set strict permissions to avoid warnings |
| 172 | + chmod 600 /etc/netplan/mramini-$1.yaml |
| 173 | + |
171 | 174 | netplan_setup |
172 | | - sudo netplan apply |
| 175 | + sudo netplan apply 2>/dev/null |
173 | 176 |
|
174 | 177 | start_obfs4 |
175 | 178 |
|
@@ -209,8 +212,11 @@ network: |
209 | 212 | addresses: |
210 | 213 | - $ipv4_local/24 |
211 | 214 | EOL |
| 215 | + # Set strict permissions to avoid warnings |
| 216 | + chmod 600 /etc/netplan/mramini-$1.yaml |
| 217 | + |
212 | 218 | netplan_setup |
213 | | - sudo netplan apply |
| 219 | + sudo netplan apply 2>/dev/null |
214 | 220 |
|
215 | 221 | start_obfs4 |
216 | 222 |
|
@@ -249,8 +255,11 @@ network: |
249 | 255 | addresses: |
250 | 256 | - $2/24 |
251 | 257 | EOL |
| 258 | + # Set strict permissions to avoid warnings |
| 259 | + chmod 600 /etc/netplan/mramini-$1.yaml |
| 260 | + |
252 | 261 | netplan_setup |
253 | | - sudo netplan apply |
| 262 | + sudo netplan apply 2>/dev/null |
254 | 263 |
|
255 | 264 | start_obfs4 |
256 | 265 |
|
@@ -289,8 +298,11 @@ network: |
289 | 298 | addresses: |
290 | 299 | - $2/24 |
291 | 300 | EOL |
| 301 | + # Set strict permissions to avoid warnings |
| 302 | + chmod 600 /etc/netplan/mramini-$1.yaml |
| 303 | + |
292 | 304 | netplan_setup |
293 | | - sudo netplan apply |
| 305 | + sudo netplan apply 2>/dev/null |
294 | 306 |
|
295 | 307 | start_obfs4 |
296 | 308 |
|
@@ -407,8 +419,11 @@ network: |
407 | 419 | addresses: |
408 | 420 | - $ipv6_local::1/64 |
409 | 421 | EOL |
| 422 | + # Set strict permissions to avoid warnings |
| 423 | + chmod 600 /etc/netplan/mramini-$1.yaml |
| 424 | + |
410 | 425 | netplan_setup |
411 | | - sudo netplan apply |
| 426 | + sudo netplan apply 2>/dev/null |
412 | 427 |
|
413 | 428 | start_obfs4 |
414 | 429 |
|
@@ -444,8 +459,11 @@ network: |
444 | 459 | addresses: |
445 | 460 | - $2/64 |
446 | 461 | EOL |
| 462 | + # Set strict permissions to avoid warnings |
| 463 | + chmod 600 /etc/netplan/mramini-$1.yaml |
| 464 | + |
447 | 465 | netplan_setup |
448 | | - sudo netplan apply |
| 466 | + sudo netplan apply 2>/dev/null |
449 | 467 |
|
450 | 468 | start_obfs4 |
451 | 469 |
|
@@ -482,8 +500,11 @@ network: |
482 | 500 | addresses: |
483 | 501 | - $ipv6_local::2/64 |
484 | 502 | EOL |
| 503 | + # Set strict permissions to avoid warnings |
| 504 | + chmod 600 /etc/netplan/mramini-$1.yaml |
| 505 | + |
485 | 506 | netplan_setup |
486 | | - sudo netplan apply |
| 507 | + sudo netplan apply 2>/dev/null |
487 | 508 |
|
488 | 509 | start_obfs4 |
489 | 510 |
|
@@ -519,8 +540,11 @@ network: |
519 | 540 | addresses: |
520 | 541 | - $2/64 |
521 | 542 | EOL |
| 543 | + # Set strict permissions to avoid warnings |
| 544 | + chmod 600 /etc/netplan/mramini-$1.yaml |
| 545 | + |
522 | 546 | netplan_setup |
523 | | - sudo netplan apply |
| 547 | + sudo netplan apply 2>/dev/null |
524 | 548 |
|
525 | 549 | start_obfs4 |
526 | 550 |
|
|
0 commit comments